Skip to content

Commit

Permalink
(fix) avoid sending IMIP messages for all EAS clients (fixes #4022)
Browse files Browse the repository at this point in the history
  • Loading branch information
extrafu committed Apr 12, 2017
1 parent 34e22da commit 7a41858
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions SoObjects/Appointments/SOGoCalendarComponent.m
Expand Up @@ -788,6 +788,15 @@ - (void) sendEMailUsingTemplateNamed: (NSString *) newPageName
if ([object firstChildWithTag: @"X-SOGo-Send-Appointment-Notifications"])
return;

// We never send IMIP inivitaton/deletion/update when the "initiator" is an EAS client.
// That is because Outlook, iOS and Android will always issue a SendMail command
// with the meeting details (ie., IMIP message with METHOD:REQUEST) so there's
// no need to send it twice. Moreover, Outlook users can also choose to NOT send
// the IMIP messsage at all, so SOGo won't send one without user's consent
if ([[[context request] requestHandlerKey] isEqualToString: @"Microsoft-Server-ActiveSync"])
return;


ownerUser = [SOGoUser userWithLogin: owner];
dd = [ownerUser domainDefaults];
if ([dd appointmentSendEMailNotifications] && [object isStillRelevant])
Expand Down

0 comments on commit 7a41858

Please sign in to comment.