summaryrefslogtreecommitdiff
path: root/wallace/module_resources.py
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-08-03 23:08:22 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-08-03 23:08:22 (GMT)
commit230efabc11e9933ea5b7e445942c28145ffc8904 (patch)
treec64b06ac02688ab7ef4c90fb1f583eb2c0909074 /wallace/module_resources.py
parent14343d7078e4b8871184491471172cf17f81dd6c (diff)
downloadpykolab-230efabc11e9933ea5b7e445942c28145ffc8904.tar.gz
Fix #916 (iTip messages w/o resources getting stuck)
Diffstat (limited to 'wallace/module_resources.py')
-rw-r--r--wallace/module_resources.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/wallace/module_resources.py b/wallace/module_resources.py
index a4873f4..8bd3e1f 100644
--- a/wallace/module_resources.py
+++ b/wallace/module_resources.py
@@ -128,6 +128,7 @@ def execute(*args, **kw):
any_itips = False
any_resources = False
+ possibly_any_resources = True
# An iTip message may contain multiple events. Later on, test if the message
# is an iTip message by checking the length of this list.
@@ -152,12 +153,11 @@ def execute(*args, **kw):
# See if any iTip actually allocates a resource.
if len([x['resources'] for x in itip_events if x.has_key('resources')]) == 0:
if len([x['attendees'] for x in itip_events if x.has_key('attendees')]) == 0:
- any_resources = False
- else:
- any_resources = True
+ possibly_any_resources = False
else:
- any_resources = False
- else:
+ possibly_any_resources = False
+
+ if possibly_any_resources:
recipients = {
"To": getaddresses(message.get_all('To', [])),
"Cc": getaddresses(message.get_all('Cc', []))