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:
parent
e2995bf580
commit
e7e103f103
@ -615,6 +615,9 @@ public class ImapConnection extends AbstractConnection {
|
||||
appendBodyStructure(buffer, mimeMessage);
|
||||
}
|
||||
} 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());
|
||||
}
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ EXCEPTION_INVALID_HEADER=Invalid header: {0}
|
||||
EXCEPTION_INVALID_ICS_LINE=Invalid ICS line: {0}
|
||||
EXCEPTION_INVALID_KEEPALIVE=Invalid Keep-Alive: {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_RECIPIENT=Invalid recipient: {0}
|
||||
EXCEPTION_INVALID_REQUEST=Invalid request: {0}
|
||||
|
Loading…
Reference in New Issue
Block a user