mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-05 18:58:02 -05:00
IMAP: fix 3441891, workaround for Exchange 2003 ActiveSync bug
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1963 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
0a11da2b0f
commit
6c8cef4d17
@ -1778,6 +1778,12 @@ public abstract class ExchangeSession {
|
||||
mimeBody = new SharedByteArrayInputStream(getContent(this));
|
||||
mimeMessage = new MimeMessage(null, mimeBody);
|
||||
mimeBody.reset();
|
||||
// workaround for Exchange 2003 ActiveSync bug
|
||||
if (mimeMessage.getHeader("MAIL FROM") != null) {
|
||||
mimeBody = (SharedByteArrayInputStream)mimeMessage.getRawInputStream();
|
||||
mimeMessage = new MimeMessage(null, mimeBody);
|
||||
mimeBody.reset();
|
||||
}
|
||||
LOGGER.debug("Downloaded full message content for IMAP UID " + imapUid + " (" + mimeBody.available() + " bytes)");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user