summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-07-17 15:45:46 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-07-17 15:45:46 +0200
commitb3ed3762f8c064d5454fcf9d7d0edfbde226029d (patch)
tree2adcfe4288a12a85ed22e6a37939b233dd4ca128
parent4c28c8afc519425b0c30c7ab8aa0e46d0d9356ff (diff)
downloadpykolab-b3ed3762f8c064d5454fcf9d7d0edfbde226029d.tar.gz
Add TODO for to_message_itip() in pykolab.xml.event.Event
Only log an error about no sender having been specified when from_address is None
-rw-r--r--pykolab/xml/event.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/pykolab/xml/event.py b/pykolab/xml/event.py
index 9ccd499..1049956 100644
--- a/pykolab/xml/event.py
+++ b/pykolab/xml/event.py
@@ -824,6 +824,7 @@ class Event(object):
attendees = self.get_attendees()
+ # TODO: There's an exception here for delegation (partstat DELEGATED)
for attendee in attendees:
if attendee.get_email() == from_address:
# Only the attendee is supposed to be listed in a reply
@@ -859,9 +860,11 @@ class Event(object):
else:
msg_from = '"%s" <%s>' % (name, email)
-
if msg_from == None:
- log.error(_("No sender specified"))
+ if from_address == None:
+ log.error(_("No sender specified"))
+ else:
+ msg_from = from_address
msg['From'] = msg_from