1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-08-13 16:53:51 -04:00

Caldav: disable caldav inbox with Lightning 1.0b2

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1344 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-08-16 15:03:21 +00:00
parent 9bb10c251e
commit 2ceb323ab8

View File

@ -553,7 +553,8 @@ public class CaldavConnection extends AbstractConnection {
response.startMultistatus();
appendInbox(response, request, null);
// do not try to access inbox on shared calendar
if (!session.isSharedFolder(request.getFolderPath(null)) && request.getDepth() == 1 && !Settings.getBooleanProperty("davmail.caldavDisableInbox")) {
if (!session.isSharedFolder(request.getFolderPath(null)) && request.getDepth() == 1
&& !request.isBrokenLightning()) {
try {
DavGatewayTray.debug(new BundleMessage("LOG_SEARCHING_CALENDAR_MESSAGES"));
List<ExchangeSession.Event> events = session.getEventMessages(request.getFolderPath());
@ -1321,6 +1322,10 @@ public class CaldavConnection extends AbstractConnection {
return isUserAgent("DAVKit/3") || isUserAgent("eM Client/") || isUserAgent("Lightning/1.0b2");
}
protected boolean isBrokenLightning() {
return isUserAgent("Lightning/1.0b2");
}
protected boolean isLightning() {
return isUserAgent("Lightning/");
}