summaryrefslogtreecommitdiffstats
path: root/wallace
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2018-06-21 08:20:37 +0000
committerAleksander Machniak <machniak@kolabsys.com>2018-06-21 08:20:37 +0000
commit417afca39a5b68e2134ec74b2a573f0b827889a9 (patch)
treebbbf6aff5e32678b009317008a11a79358582728 /wallace
parentc91c18827c5c16e266be2f9e63d87b9ac78be1ec (diff)
downloadpykolab-417afca39a5b68e2134ec74b2a573f0b827889a9.tar.gz
Fix invitationpolicy error on an itip reply with no ORGANIZER prop (Bifrost#T114576)
Diffstat (limited to 'wallace')
-rw-r--r--wallace/module_invitationpolicy.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/wallace/module_invitationpolicy.py b/wallace/module_invitationpolicy.py
index a2a37fe..9a87ca5 100644
--- a/wallace/module_invitationpolicy.py
+++ b/wallace/module_invitationpolicy.py
@@ -319,8 +319,12 @@ def execute(*args, **kw):
# for replies, the organizer is the recipient
if itip_event['method'] == 'REPLY':
- organizer_mailto = str(itip_event['organizer']).split(':')[-1]
- user_attendees = [organizer_mailto] if organizer_mailto in recipient_emails else []
+ # Outlook can send iTip replies without an organizer property
+ if itip_event.has_key('organizer'):
+ organizer_mailto = str(itip_event['organizer']).split(':')[-1]
+ user_attendees = [organizer_mailto] if organizer_mailto in recipient_emails else []
+ else:
+ user_attendees = [recipient_email]
else:
# Limit the attendees to the one that is actually invited with the current message.