mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 03:02:22 -05:00
EWS: use isrecurring with Exchange 2010 and instancetype with Exchange 2007
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1757 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
172edf059b
commit
dfc1338e90
@ -1495,9 +1495,14 @@ public class EwsExchangeSession extends ExchangeSession {
|
||||
|
||||
@Override
|
||||
protected Condition getCalendarItemCondition(boolean excludeTasks, Condition dateCondition) {
|
||||
// tasks in calendar not supported over EWS
|
||||
return or(isTrue("isrecurring"),
|
||||
and(isFalse("isrecurring"), dateCondition));
|
||||
if ("Exchange2010".equals(serverVersion)) {
|
||||
// tasks in calendar not supported over EWS
|
||||
return or(isTrue("isrecurring"),
|
||||
and(isFalse("isrecurring"), dateCondition));
|
||||
} else {
|
||||
return or(isEqualTo("instancetype", 1),
|
||||
and(isEqualTo("instancetype", 0), dateCondition));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user