[or-cvs] r21209: {projects} Don't send out notifications if either sender or receiver ar (projects/gettor)
kaner at seul.org
kaner at seul.org
Tue Dec 15 00:07:38 UTC 2009
Author: kaner
Date: 2009-12-14 19:07:12 -0500 (Mon, 14 Dec 2009)
New Revision: 21209
Modified:
projects/gettor/GetTor.py
Log:
Don't send out notifications if either sender or receiver are empty
Modified: projects/gettor/GetTor.py
===================================================================
--- projects/gettor/GetTor.py 2009-12-15 00:02:53 UTC (rev 21208)
+++ projects/gettor/GetTor.py 2009-12-15 00:07:12 UTC (rev 21209)
@@ -32,7 +32,7 @@
log.info("We'll keep a record of this mail.")
gettor.utils.dumpMessage(conf, rawMessage)
# Send out notification to user, if possible
- if sendFr != "" and sendTo != "":
+ if sendFr != "" or sendTo != "":
if not gettor.responses.sendNotification(conf, sendFr, sendTo):
log.error("Also failed to send the user a proper notification. :-/")
else:
More information about the tor-commits
mailing list