From 8ad5c922ab5664f8611c9bb52f95f8302e548c23 Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Thu, 10 Dec 2015 18:08:37 -0500 Subject: [PATCH] raise error instead of sending email to no one ... when the processed email contains no from address --- edward | 3 +++ 1 file changed, 3 insertions(+) diff --git a/edward b/edward index ba4b947..4f782c6 100755 --- a/edward +++ b/edward @@ -1368,6 +1368,9 @@ def send_reply(email_txt, reply_to, reply_from): Email is sent """ + if reply_to == None: + error("*** ERROR: No one to send email to.") + exit(1) s = smtplib.SMTP('localhost') s.sendmail(reply_from, reply_to, email_txt) -- 2.25.1