summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-09-04 10:40:00 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-09-04 10:40:00 +0100
commit849e1ec9d404b2db1a930c211c4c596264ef342a (patch)
treeae164f3871fda5bd09b50f44f6fe6c15ada27369
parent4497e81bb593ea9dc94fe560430d76391b6ea09a (diff)
downloadpykolab-849e1ec9d404b2db1a930c211c4c596264ef342a.tar.gz
Correctly pass on the original recipients to the SMTP forwarding
-rw-r--r--wallace/modules.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/wallace/modules.py b/wallace/modules.py
index c523eba..8a843e3 100644
--- a/wallace/modules.py
+++ b/wallace/modules.py
@@ -254,12 +254,13 @@ def cb_action_ACCEPT(module, filepath):
smtp = smtplib.SMTP("localhost", 10027)
+ if conf.debuglevel > 8:
+ smtp.set_debuglevel(True)
+
try:
smtp.sendmail(
formataddr(envelope_sender[0]),
- COMMASPACE.join(
- [formataddr(recipient) for recipient in recipients]
- ),
+ [formataddr(recipient) for recipient in recipients],
message.as_string()
)