1
0
mirror of https://github.com/moparisthebest/davmail synced 2025-01-07 03:38:05 -05:00

Caldav: workaround for iCal bug: do not notify if reply explicitly not requested

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1054 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-05-14 10:52:50 +00:00
parent af00797c99
commit 56768b40ad

View File

@ -2742,14 +2742,19 @@ public class ExchangeSession {
// exclude current user and invalid values from recipients // exclude current user and invalid values from recipients
// also exclude no action attendees // also exclude no action attendees
} else if (!email.equalsIgnoreCase(value) && value.indexOf('@') >= 0 } else if (!email.equalsIgnoreCase(value) && value.indexOf('@') >= 0
// return all attendees for user calendar folder, filter for notifications
&& (!isNotification && (!isNotification
|| line.indexOf("RSVP=TRUE") >= 0 // notify attendee if reply explicitly requested
|| line.indexOf("PARTSTAT=NEEDS-ACTION") >= 0 || (line.indexOf("RSVP=TRUE") >= 0)
// need to include other PARTSTATs participants for CANCEL notifications || (
|| line.indexOf("PARTSTAT=ACCEPTED") >= 0 // workaround for iCal bug: do not notify if reply explicitly not requested
|| line.indexOf("PARTSTAT=DECLINED") >= 0 !(line.indexOf("RSVP=FALSE") >= 0) &&
|| line.indexOf("PARTSTAT=TENTATIVE") >= 0 ((line.indexOf("PARTSTAT=NEEDS-ACTION") >= 0
)) { // need to include other PARTSTATs participants for CANCEL notifications
|| line.indexOf("PARTSTAT=ACCEPTED") >= 0
|| line.indexOf("PARTSTAT=DECLINED") >= 0
|| line.indexOf("PARTSTAT=TENTATIVE") >= 0))
))) {
if (line.indexOf("ROLE=OPT-PARTICIPANT") >= 0) { if (line.indexOf("ROLE=OPT-PARTICIPANT") >= 0) {
optionalAttendees.add(value); optionalAttendees.add(value);
} else { } else {