From 16bb4a9a4b8c7ebc8c89cb61ea50a50ff69ee508 Mon Sep 17 00:00:00 2001 From: mguessan Date: Fri, 7 Aug 2009 13:10:33 +0000 Subject: [PATCH] Caldav: remove empty ics properties git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@656 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/exchange/ExchangeSession.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/java/davmail/exchange/ExchangeSession.java b/src/java/davmail/exchange/ExchangeSession.java index 014dfa24..ef15cfbd 100644 --- a/src/java/davmail/exchange/ExchangeSession.java +++ b/src/java/davmail/exchange/ExchangeSession.java @@ -1584,7 +1584,10 @@ public class ExchangeSession { String line; while ((line = reader.readLine()) != null) { - if (!fromServer && currentAllDayState.isAllDay && "X-MICROSOFT-CDO-ALLDAYEVENT:FALSE".equals(line)) { + // remove empty properties + if ("CLASS:".equals(line) || "LOCATION:".equals(line)) { + continue; + } else if (!fromServer && currentAllDayState.isAllDay && "X-MICROSOFT-CDO-ALLDAYEVENT:FALSE".equals(line)) { line = "X-MICROSOFT-CDO-ALLDAYEVENT:TRUE"; } else if (!fromServer && "END:VEVENT".equals(line) && currentAllDayState.isAllDay && !currentAllDayState.hasCdoAllDay) { result.writeLine("X-MICROSOFT-CDO-ALLDAYEVENT:TRUE");