[or-cvs] r15888: Fix reply to actually work. (projects/gettor)
ioerror at seul.org
ioerror at seul.org
Mon Jul 14 03:56:37 UTC 2008
Author: ioerror
Date: 2008-07-13 23:56:37 -0400 (Sun, 13 Jul 2008)
New Revision: 15888
Modified:
projects/gettor/gettor_responses.py
Log:
Fix reply to actually work.
Modified: projects/gettor/gettor_responses.py
===================================================================
--- projects/gettor/gettor_responses.py 2008-07-14 03:25:38 UTC (rev 15887)
+++ projects/gettor/gettor_responses.py 2008-07-14 03:56:37 UTC (rev 15888)
@@ -21,7 +21,7 @@
""" Send a message with an attachment to the user interacting with us """
package = constructMessage(message, source, destination, filelist)
try:
- status = sendMessage(package, destination)
+ status = sendMessage(package, source, destination)
except:
status = False
return status
@@ -54,7 +54,7 @@
mime.lastpart()
return message
-def sendMessage(message, dst, src="gettor at torproject.org", smtpserver="localhost:2700"):
+def sendMessage(message, src, dst, smtpserver="localhost:25"):
try:
smtp = smtplib.SMTP(smtpserver)
smtp.sendmail(src, dst, message.getvalue())
More information about the tor-commits
mailing list