From 1434542b7d44867c83607d0402a52c5989bf11e5 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Mon, 17 Sep 2018 08:17:42 +0100 Subject: [PATCH] Close Mbox and logout of server before quitting --- syndicate.py | 3 +++ 1 file changed, 3 insertions(+) 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() -- 2.46.2