From 58eddd24f737571a4c901240ae479d9810171dd6 Mon Sep 17 00:00:00 2001 From: mguessan Date: Wed, 10 Feb 2010 21:46:08 +0000 Subject: [PATCH] Caldav: add a hidden davmail.caldavDisableInbox to allow users to disable Caldav Inbox with Thunderbird 3 and Lightning git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@942 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/caldav/CaldavConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/davmail/caldav/CaldavConnection.java b/src/java/davmail/caldav/CaldavConnection.java index 0a160f19..56286dc3 100644 --- a/src/java/davmail/caldav/CaldavConnection.java +++ b/src/java/davmail/caldav/CaldavConnection.java @@ -504,7 +504,7 @@ public class CaldavConnection extends AbstractConnection { CaldavResponse response = new CaldavResponse(HttpStatus.SC_MULTI_STATUS); response.startMultistatus(); appendInbox(response, request, null); - if (request.getDepth() == 1) { + if (request.getDepth() == 1 && !Settings.getBooleanProperty("davmail.caldavDisableInbox")) { try { DavGatewayTray.debug(new BundleMessage("LOG_SEARCHING_CALENDAR_MESSAGES")); List events = session.getEventMessages(request.getExchangeFolderPath());