From 5884c12a5d4ae46e1b8ac686322595a1a21ccd4d Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Aug 18 2016 13:22:06 +0000 Subject: honor smtp_host option in koji-gc (jflorian) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1367945 --- diff --git a/util/koji-gc b/util/koji-gc index 6a990bf..0c7ad09 100755 --- a/util/koji-gc +++ b/util/koji-gc @@ -433,9 +433,8 @@ refer to the document linked above for instructions.""" if options.debug: print "Sending warning notice to %s" % msg['To'] s = smtplib.SMTP(options.smtp_host) - s.connect() s.sendmail(msg['From'], msg['To'], msg.as_string()) - s.close() + s.quit() def main(args):