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

EWS: fix 3047563 double inbox

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1475 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-09-24 22:34:22 +00:00
parent cabb7b6c1f
commit 2d0f0de86c

View File

@ -132,6 +132,8 @@ public class EwsExchangeSession extends ExchangeSession {
try {
folderIdMap = new HashMap<String, String>();
// workaround for Exchange bug: send fake request
internalGetFolder("");
// load actual well known folder ids
folderIdMap.put(internalGetFolder(INBOX).folderId.value, INBOX);
folderIdMap.put(internalGetFolder(CALENDAR).folderId.value, CALENDAR);
@ -775,6 +777,7 @@ public class EwsExchangeSession extends ExchangeSession {
} else {
throw new HttpNotFoundException("Folder " + folderPath + " not found");
}
System.out.println(folderPath+": "+folder.folderId.value);
return folder;
}