[Python-checkins] r62363 - tracker/instances/python-dev/detectors/sendmail.py
martin.v.loewis
python-checkins at python.org
Thu Apr 17 10:09:56 CEST 2008
Author: martin.v.loewis
Date: Thu Apr 17 10:09:56 2008
New Revision: 62363
Log:
Only send email if there are recipients.
Modified:
tracker/instances/python-dev/detectors/sendmail.py
Modified: tracker/instances/python-dev/detectors/sendmail.py
==============================================================================
--- tracker/instances/python-dev/detectors/sendmail.py (original)
+++ tracker/instances/python-dev/detectors/sendmail.py Thu Apr 17 10:09:56 2008
@@ -100,7 +100,8 @@
for msgid in [msgid for msgid in new_messages if not is_spam(db, msgid)]:
try:
- cl.send_message(nodeid, msgid, changenote, sendto,
+ if sendto:
+ cl.send_message(nodeid, msgid, changenote, sendto,
authid=authid)
nosymessage(db, nodeid, msgid, oldvalues, changenote)
except roundupdb.MessageSendError, message:
More information about the Python-checkins
mailing list