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
1 changed files with 6 additions and 3 deletions

View File

@ -1600,10 +1600,13 @@ public class ExchangeSession {
result.writeLine("X-CALENDARSERVER-ACCESS:" + eventClass);
}
}
} else if ("END:VEVENT".equals(line)) {
if (!hasOrganizer) {
// remove organizer line if current user is organizer for iPhone
// 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(line);
}