summaryrefslogtreecommitdiffstats
path: root/wallace
diff options
context:
space:
mode:
Diffstat (limited to 'wallace')
-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()
)