Caldav: reintroduce davmail.caldavDisableTasks setting to disable tasks support

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1959 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2012-05-14 20:50:21 +00:00
parent 6d02a25c0e
commit 7fa79e7b4d
1 changed files with 1 additions and 1 deletions

View File

@ -2571,7 +2571,7 @@ public abstract class ExchangeSession {
public List<Event> getAllEvents(String folderPath) throws IOException {
List<Event> results = searchEvents(folderPath, getCalendarItemCondition(getPastDelayCondition("dtstart")));
if (isMainCalendar(folderPath)) {
if (!Settings.getBooleanProperty("davmail.caldavDisableTasks", false) && isMainCalendar(folderPath)) {
// retrieve tasks from main tasks folder
results.addAll(searchTasksOnly(TASKS));
}