1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 11:12:22 -05:00

IMAP: send default BODYSTRUCTURE on mime parsing failure

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@703 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-09-07 09:01:07 +00:00
parent fec65abf7f
commit 679d7f55d9

View File

@ -618,7 +618,8 @@ public class ImapConnection extends AbstractConnection {
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());
// failover: send default bodystructure
buffer.append("(\"TEXT\" \"PLAIN\" (\"CHARSET\" \"US-ASCII\") NIL NIL NIL ").append(baos.size()).append(" NIL)");
}
}