# HG changeset patch # User Paul Boddie # Date 1423147975 -3600 # Node ID 6ce516322f0ff3aadbe7772a9e69bf6ec034d9d9 # Parent 986f9e9989619ab54ce0a019134d46f8b9bfb9cf Exclude the user as attendee from receiving mail sent when acting as organiser. diff -r 986f9e998961 -r 6ce516322f0f imip_manager.py --- a/imip_manager.py Thu Feb 05 15:51:30 2015 +0100 +++ b/imip_manager.py Thu Feb 05 15:52:55 2015 +0100 @@ -135,8 +135,12 @@ parts = [self.obj.to_part(method)] + # As organiser, send an invitation to attendees, excluding oneself if + # also attending. The updated event will be saved by the outgoing + # handler. + if for_organiser: - recipients = map(get_address, self.attendees) + recipients = [get_address(attendee) for attendee in self.attendees if attendee != self.user] else: recipients = [get_address(self.organiser)]