mirror of
https://github.com/moparisthebest/davmail
synced 2025-02-28 09:21:49 -05:00
Caldav: Create a new davmail.caldavEnableLegacyTasks to allow access to tasks created in calendar folder by previous DavMail versions
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1866 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
b04fe91c65
commit
2b77cbef55
@ -2099,10 +2099,18 @@ public class DavExchangeSession extends ExchangeSession {
|
||||
|
||||
@Override
|
||||
protected Condition getCalendarItemCondition(Condition dateCondition) {
|
||||
// instancetype 0 single appointment / 1 master recurring appointment
|
||||
return and(isEqualTo("outlookmessageclass", "IPM.Appointment"),
|
||||
or(isEqualTo("instancetype", 1),
|
||||
and(isEqualTo("instancetype", 0), dateCondition)));
|
||||
boolean caldavEnableLegacyTasks = Settings.getBooleanProperty("davmail.caldavEnableLegacyTasks", false);
|
||||
if (caldavEnableLegacyTasks) {
|
||||
// return tasks created in calendar folder
|
||||
return or(isNull("instancetype"),
|
||||
isEqualTo("instancetype", 1),
|
||||
and(isEqualTo("instancetype", 0), dateCondition));
|
||||
} else {
|
||||
// instancetype 0 single appointment / 1 master recurring appointment
|
||||
return and(isEqualTo("outlookmessageclass", "IPM.Appointment"),
|
||||
or(isEqualTo("instancetype", 1),
|
||||
and(isEqualTo("instancetype", 0), dateCondition)));
|
||||
}
|
||||
}
|
||||
|
||||
protected MultiStatusResponse[] searchItems(String folderPath, Set<String> attributes, Condition condition,
|
||||
|
Loading…
x
Reference in New Issue
Block a user