1
0
mirror of https://github.com/moparisthebest/davmail synced 2025-01-05 18:58:02 -05:00

Caldav: remove organizer line if current user is organizer for iPhone, will not remove line for events with attendees

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@643 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-08-04 08:39:43 +00:00
parent 9a3d3c2de9
commit 3b446fefbf

View File

@ -1600,10 +1600,13 @@ public class ExchangeSession {
result.writeLine("X-CALENDARSERVER-ACCESS:" + eventClass); result.writeLine("X-CALENDARSERVER-ACCESS:" + eventClass);
} }
} }
} else if ("END:VEVENT".equals(line)) { // remove organizer line if current user is organizer for iPhone
if (!hasOrganizer) { // will not remove line for events with attendees
} else if (fromServer && line.equals("ORGANIZER:MAILTO:" + email)) {
continue;
// add organizer line to all events created in Exchange for active sync
} else if (!fromServer && "END:VEVENT".equals(line) && !hasOrganizer) {
result.writeLine("ORGANIZER:MAILTO:" + email); result.writeLine("ORGANIZER:MAILTO:" + email);
}
} }
result.writeLine(line); result.writeLine(line);
} }