mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-05 10:47:59 -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:
parent
af00797c99
commit
56768b40ad
@ -2742,14 +2742,19 @@ public class ExchangeSession {
|
||||
// exclude current user and invalid values from recipients
|
||||
// also exclude no action attendees
|
||||
} else if (!email.equalsIgnoreCase(value) && value.indexOf('@') >= 0
|
||||
// return all attendees for user calendar folder, filter for notifications
|
||||
&& (!isNotification
|
||||
|| line.indexOf("RSVP=TRUE") >= 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
|
||||
)) {
|
||||
// notify attendee if reply explicitly requested
|
||||
|| (line.indexOf("RSVP=TRUE") >= 0)
|
||||
|| (
|
||||
// workaround for iCal bug: do not notify if reply explicitly not requested
|
||||
!(line.indexOf("RSVP=FALSE") >= 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) {
|
||||
optionalAttendees.add(value);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user