diff options
Diffstat (limited to 'climl/hooks.py')
-rw-r--r-- | climl/hooks.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/climl/hooks.py b/climl/hooks.py index 8311da4..cf8ae9d 100644 --- a/climl/hooks.py +++ b/climl/hooks.py @@ -2,6 +2,11 @@ import smtplib from . import interface +def hook_extract_listname(context, content): + print('hook_extract_listname:') + print(content) + + def hook_check_ml_restrictions(context, content): pass @@ -39,7 +44,7 @@ def hook_send_all(context, content): raise interface.HookStopIteration() # TODO: how to send emails here ? - smtp_server = smtplib.SMTP(context.get('smtp.server')) + smtp_server = smtplib.SMTP(context.conf.get('smtp.server')) #smtp_server.set_debuglevel(1) smtp_server.sendmail(listaddress, context['recipients'], content) smtp_server.quit() |