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:
parent
fec65abf7f
commit
679d7f55d9
@ -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)");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user