From: Maximilian Friedersdorff Date: Mon, 17 Sep 2018 07:17:42 +0000 (+0100) Subject: Close Mbox and logout of server before quitting X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;ds=sidebyside;p=max%2Femail_syndication.git Close Mbox and logout of server before quitting --- diff --git a/syndicate.py b/syndicate.py index b98efa3..4e0b9ff 100644 --- a/syndicate.py +++ b/syndicate.py @@ -82,3 +82,6 @@ summary['To'] = 'maf54@aber.ac.uk' s = smtplib.SMTP('smtphost.aber.ac.uk') s.sendmail('maf54@aber.ac.uk', 'maf54@aber.ac.uk', summary.as_string()) s.quit() + +M.close() +M.logout()