From 679d7f55d9f19da98780be666393aa6449f7b0d1 Mon Sep 17 00:00:00 2001 From: mguessan Date: Mon, 7 Sep 2009 09:01:07 +0000 Subject: [PATCH] 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 --- src/java/davmail/imap/ImapConnection.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/java/davmail/imap/ImapConnection.java b/src/java/davmail/imap/ImapConnection.java index 40cb4840..af1eba62 100644 --- a/src/java/davmail/imap/ImapConnection.java +++ b/src/java/davmail/imap/ImapConnection.java @@ -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)"); } }