mirror of
https://github.com/moparisthebest/davmail
synced 2024-11-11 20:05:03 -05:00
Caldav: remove empty ics properties
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@656 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
8193052f13
commit
16bb4a9a4b
@ -1584,7 +1584,10 @@ public class ExchangeSession {
|
|||||||
String line;
|
String line;
|
||||||
|
|
||||||
while ((line = reader.readLine()) != null) {
|
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";
|
line = "X-MICROSOFT-CDO-ALLDAYEVENT:TRUE";
|
||||||
} else if (!fromServer && "END:VEVENT".equals(line) && currentAllDayState.isAllDay && !currentAllDayState.hasCdoAllDay) {
|
} else if (!fromServer && "END:VEVENT".equals(line) && currentAllDayState.isAllDay && !currentAllDayState.hasCdoAllDay) {
|
||||||
result.writeLine("X-MICROSOFT-CDO-ALLDAYEVENT:TRUE");
|
result.writeLine("X-MICROSOFT-CDO-ALLDAYEVENT:TRUE");
|
||||||
|
Loading…
Reference in New Issue
Block a user