From d4ef2392ab1ef4c0c345668933887234a331dcd5 Mon Sep 17 00:00:00 2001 From: mguessan Date: Fri, 30 May 2014 12:54:28 +0000 Subject: [PATCH] EWS: adjust declined item handling git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2291 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/exchange/ews/EwsExchangeSession.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/java/davmail/exchange/ews/EwsExchangeSession.java b/src/java/davmail/exchange/ews/EwsExchangeSession.java index 86fc8974..9f28b11d 100644 --- a/src/java/davmail/exchange/ews/EwsExchangeSession.java +++ b/src/java/davmail/exchange/ews/EwsExchangeSession.java @@ -730,7 +730,7 @@ public class EwsExchangeSession extends ExchangeSession { return searchItems(folderPath, attributes, condition, folderQueryTraversal); } // limited search, do not use paged search, limit with maxCount, sort by imapUid descending to get latest items - int resultCount = 0; + int resultCount; List results = new ArrayList(); FindItemMethod findItemMethod; @@ -1633,10 +1633,9 @@ public class EwsExchangeSession extends ExchangeSession { String ownerPartStat = property.getParamValue("PARTSTAT"); if ("ACCEPTED".equals(ownerPartStat)) { ownerResponseReply = "AcceptItem"; - // do not send DeclineItem to avoid deleting target event - //} else if ("DECLINED".equals(ownerPartStat)) { - // ownerResponseReply = "DeclineItem"; - } else if ("TENTATIVE".equals(ownerPartStat)) { + // do not send DeclineItem to avoid deleting target event + } else if ("DECLINED".equals(ownerPartStat) || + "TENTATIVE".equals(ownerPartStat)) { ownerResponseReply = "TentativelyAcceptItem"; } }