diff --git a/src/java/davmail/exchange/ExchangeSession.java b/src/java/davmail/exchange/ExchangeSession.java index 966b9d3a..9e2cad3c 100644 --- a/src/java/davmail/exchange/ExchangeSession.java +++ b/src/java/davmail/exchange/ExchangeSession.java @@ -1738,6 +1738,8 @@ public class ExchangeSession { String searchQuery = "Select \"DAV:getetag\", \"http://schemas.microsoft.com/exchange/permanenturl\"" + " FROM Scope('SHALLOW TRAVERSAL OF \"" + folderPath + "\"')\n" + " WHERE (" + + // VTODO events have a null instancetype + " \"urn:schemas:calendar:instancetype\" is null OR" + " \"urn:schemas:calendar:instancetype\" = 1\n" + " OR (\"urn:schemas:calendar:instancetype\" = 0\n" + dateCondition +