Commit 0d903001 authored by Mickaël Guessant's avatar Mickaël Guessant

EWS: Allow Item and PostItem elements in message folders

git-svn-id: https://svn.code.sf.net/p/davmail/code/trunk@2286 3d1905a2-6b24-0410-a738-b14d5a86fcbd
parent 45a319dc
......@@ -70,9 +70,10 @@ public class EwsExchangeSession extends ExchangeSession {
MESSAGE_TYPES.add("MeetingResponse");
MESSAGE_TYPES.add("MeetingCancellation");
MESSAGE_TYPES.add("Item");
MESSAGE_TYPES.add("PostItem");
// exclude types from IMAP
//MESSAGE_TYPES.add("Item");
//MESSAGE_TYPES.add("PostItem");
//MESSAGE_TYPES.add("Contact");
//MESSAGE_TYPES.add("DistributionList");
//MESSAGE_TYPES.add("Task");
......@@ -764,12 +765,12 @@ public class EwsExchangeSession extends ExchangeSession {
results.addAll(findItemMethod.getResponseItems());
resultCount = results.size();
if (resultCount > 0 && LOGGER.isDebugEnabled()) {
LOGGER.debug("Search items current count: "+resultCount+" fetchCount: "+fetchCount
LOGGER.debug("Folder " + folderPath + " - Search items current count: "+resultCount+" fetchCount: "+fetchCount
+" highest uid: "+results.get(0).get(Field.get("imapUid").getResponseName())
+" lowest uid: "+results.get(resultCount-1).get(Field.get("imapUid").getResponseName()));
}
if (Thread.interrupted()) {
LOGGER.debug("Search items failed: Interrupted by client");
LOGGER.debug("Folder " + folderPath + " - Search items failed: Interrupted by client");
throw new IOException("Search items failed: Interrupted by client");
}
} while (!(findItemMethod.includesLastItemInRange || (maxCount > 0 && resultCount == maxCount)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment