comparison 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
comparison
equal deleted inserted replaced
5223:34e8d3f39057 5224:0121b2f1f041
656 send_msg ['Message-Id'] = message ['Message-Id'] 656 send_msg ['Message-Id'] = message ['Message-Id']
657 send_msg ['Reply-To'] = message ['Reply-To'] 657 send_msg ['Reply-To'] = message ['Reply-To']
658 if message.get ('In-Reply-To'): 658 if message.get ('In-Reply-To'):
659 send_msg ['In-Reply-To'] = message ['In-Reply-To'] 659 send_msg ['In-Reply-To'] = message ['In-Reply-To']
660 660
661 mailer.smtp_send(sendto, send_msg.as_string()) 661 if sendto:
662 mailer.smtp_send(sendto, send_msg.as_string())
662 if first: 663 if first:
663 if crypt: 664 if crypt:
664 # send individual bcc mails, otherwise receivers can 665 # send individual bcc mails, otherwise receivers can
665 # deduce bcc recipients from keys in message 666 # deduce bcc recipients from keys in message
666 for bcc in bcc_sendto: 667 for bcc in bcc_sendto:

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