[or-cvs] r21134: {projects} Add some missing bits from the previous commit (projects/gettor/lib/gettor)
kaner at seul.org
kaner at seul.org
Tue Dec 8 22:59:05 UTC 2009
Author: kaner
Date: 2009-12-08 17:59:05 -0500 (Tue, 08 Dec 2009)
New Revision: 21134
Modified:
projects/gettor/lib/gettor/responses.py
Log:
Add some missing bits from the previous commit
Modified: projects/gettor/lib/gettor/responses.py
===================================================================
--- projects/gettor/lib/gettor/responses.py 2009-12-08 22:51:31 UTC (rev 21133)
+++ projects/gettor/lib/gettor/responses.py 2009-12-08 22:59:05 UTC (rev 21134)
@@ -32,17 +32,20 @@
trans = None
-def sendNotification(config, sendTo):
+def sendNotification(config, sendFr, sendTo):
"""Send notification to user"""
- response = Response(config, sendTo, None, "", False, True, "")
+ response = Response(config, sendFr, sendTo, None, "", False, True, "")
message = gettor.constants.mailfailmsg
return response.sendGenericMessage(message)
class Response:
- def __init__(self, config, replyto, lang, package, split, signature, caddr):
+ def __init__(self, config, sendFr, replyto, lang, package, split, signature, caddr):
self.config = config
- self.srcEmail = "GetTor <gettor at torproject.org>"
+ if sendFr is None:
+ self.srcEmail = "GetTor <gettor at torproject.org>"
+ else:
+ self.srcEmail = sendFr
self.replyTo = replyto
assert self.replyTo is not None, "Empty reply address."
# Default lang is en
More information about the tor-commits
mailing list