1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-12 10:42:21 -05:00

IMAP: skip Microsoft Mail Internet Headers Version 2.0 in message headers field

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2139 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2013-06-09 22:31:42 +00:00
parent c29727941a
commit af70807bf7

View File

@ -1086,6 +1086,10 @@ public class DavExchangeSession extends ExchangeSession {
try {
String messageHeaders = getItemProperty(permanentUrl, "messageheaders");
if (messageHeaders != null) {
final String MS_HEADER = "Microsoft Mail Internet Headers Version 2.0\r\n";
if (messageHeaders.startsWith(MS_HEADER)) {
messageHeaders = messageHeaders.substring(MS_HEADER.length());
}
// workaround for messages in Sent folder
if (messageHeaders.indexOf("From:") < 0) {
String from = getItemProperty(permanentUrl, "from");