From: Andrew Engelbrecht Date: Thu, 10 Dec 2015 23:08:37 +0000 (-0500) Subject: raise error instead of sending email to no one X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8ad5c922ab5664f8611c9bb52f95f8302e548c23;p=edward.git raise error instead of sending email to no one ... when the processed email contains no from address --- 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)