From 5afe51250149b0970467fc52e44454e8ab351fab Mon Sep 17 00:00:00 2001 From: mguessan Date: Wed, 14 Apr 2010 20:08:33 +0000 Subject: [PATCH] Caldav: make shared calendar test case insensitive git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1004 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/exchange/ExchangeSession.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/davmail/exchange/ExchangeSession.java b/src/java/davmail/exchange/ExchangeSession.java index 60134644..6c53e285 100644 --- a/src/java/davmail/exchange/ExchangeSession.java +++ b/src/java/davmail/exchange/ExchangeSession.java @@ -2916,7 +2916,7 @@ public class ExchangeSession { public String buildCalendarPath(String principal, String folderName) throws IOException { StringBuilder buffer = new StringBuilder(); // other user calendar => replace principal folder name in mailPath - if (principal != null && !alias.equals(principal) && !email.equals(principal)) { + if (principal != null && !alias.equalsIgnoreCase(principal) && !email.equalsIgnoreCase(principal)) { LOGGER.debug("Detected shared calendar path for principal " + principal + ", user principal is " + email); int index = mailPath.lastIndexOf('/', mailPath.length() - 2); if (index >= 0 && mailPath.endsWith("/")) { @@ -2954,7 +2954,7 @@ public class ExchangeSession { * @return true if folderPath is a public or shared folder */ public boolean isSharedFolder(String folderPath) { - return !folderPath.startsWith(mailPath); + return !folderPath.toLowerCase().startsWith(mailPath.toLowerCase()); } /**