diff roundup/roundupdb.py @ 5224:0121b2f1f041

Apply patch attached to issue2550937 traceback/crash due to passing empty sendto to smtp_send. Fix by Trent Gamblin. http://issues.roundup-tracker.org/issue2550937
author John Rouillard <rouilj@ieee.org>
date Wed, 05 Apr 2017 22:04:04 -0400
parents a927f9549af0
children a4fe76fba54a
line wrap: on
line diff
--- a/roundup/roundupdb.py	Wed Apr 05 21:40:56 2017 -0400
+++ b/roundup/roundupdb.py	Wed Apr 05 22:04:04 2017 -0400
@@ -658,7 +658,8 @@
                 if message.get ('In-Reply-To'):
                     send_msg ['In-Reply-To'] = message ['In-Reply-To']
 
-            mailer.smtp_send(sendto, send_msg.as_string())
+            if sendto:
+                mailer.smtp_send(sendto, send_msg.as_string())
             if first:
                 if crypt:
                     # send individual bcc mails, otherwise receivers can

Roundup Issue Tracker: http://roundup-tracker.org/