1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-14 03:32:22 -05:00

IMAP: Improve IMAP bodystructure error logging

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@699 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-09-04 16:01:24 +00:00
parent e2995bf580
commit e7e103f103
2 changed files with 4 additions and 1 deletions

View File

@ -615,6 +615,9 @@ public class ImapConnection extends AbstractConnection {
appendBodyStructure(buffer, mimeMessage); appendBodyStructure(buffer, mimeMessage);
} }
} catch (MessagingException me) { } catch (MessagingException me) {
DavGatewayTray.warn(me);
// dump message in log
DavGatewayTray.debug(new BundleMessage("LOG_MESSAGE", new String(baos.toByteArray())));
throw new DavMailException("EXCEPTION_INVALID_MESSAGE_CONTENT", me.getMessage()); throw new DavMailException("EXCEPTION_INVALID_MESSAGE_CONTENT", me.getMessage());
} }
} }

View File

@ -18,7 +18,7 @@ EXCEPTION_INVALID_HEADER=Invalid header: {0}
EXCEPTION_INVALID_ICS_LINE=Invalid ICS line: {0} EXCEPTION_INVALID_ICS_LINE=Invalid ICS line: {0}
EXCEPTION_INVALID_KEEPALIVE=Invalid Keep-Alive: {0} EXCEPTION_INVALID_KEEPALIVE=Invalid Keep-Alive: {0}
EXCEPTION_INVALID_MAIL_PATH=Invalid mail path: {0} EXCEPTION_INVALID_MAIL_PATH=Invalid mail path: {0}
EXCEPTION_INVALID_MESSAGE_CONTENT=Invalid calendar message content: {0} EXCEPTION_INVALID_MESSAGE_CONTENT=Invalid message content: {0}
EXCEPTION_INVALID_MESSAGE_URL=Invalid message URL: {0} EXCEPTION_INVALID_MESSAGE_URL=Invalid message URL: {0}
EXCEPTION_INVALID_RECIPIENT=Invalid recipient: {0} EXCEPTION_INVALID_RECIPIENT=Invalid recipient: {0}
EXCEPTION_INVALID_REQUEST=Invalid request: {0} EXCEPTION_INVALID_REQUEST=Invalid request: {0}