diff options
author | Aleksander Machniak <machniak@kolabsys.com> | 2018-06-21 08:41:51 +0000 |
---|---|---|
committer | Aleksander Machniak <machniak@kolabsys.com> | 2018-06-21 08:41:51 +0000 |
commit | df84f862a9a27f09def5e8b19cbb60e4e7c700b9 (patch) | |
tree | ed7ff191c8c1dbf0ca8d8cf145c1ba98f7f2861e | |
parent | 417afca39a5b68e2134ec74b2a573f0b827889a9 (diff) | |
download | pykolab-df84f862a9a27f09def5e8b19cbb60e4e7c700b9.tar.gz |
Ignore iTip dummy comments with whitespace chars only (e.g. from Outlook)
-rw-r--r-- | wallace/module_invitationpolicy.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wallace/module_invitationpolicy.py b/wallace/module_invitationpolicy.py index 9a87ca5..6aee7b0 100644 --- a/wallace/module_invitationpolicy.py +++ b/wallace/module_invitationpolicy.py @@ -1178,6 +1178,7 @@ def send_update_notification(object, receiving_user, old=None, reply=True, sende orgname = organizer.name() itip_comment = None + comment = comment.strip() if sender is not None and not comment == '': itip_comment = _("%s commented: %s") % (_attendee_name(sender), comment) @@ -1331,6 +1332,7 @@ def send_cancel_notification(object, receiving_user, deleted=False, sender=None, else: message_text += " " + _("The copy in your calendar has been marked as cancelled accordingly.") + comment = comment.strip() if sender is not None and not comment == '': message_text += "\n" + _("%s commented: %s") % (_attendee_name(sender), comment) |