projects
/
invirt/packages/invirt-web.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
606c843
)
include a return address in error mail
author
Greg Price
<price@mit.edu>
Tue, 18 Nov 2008 17:07:35 +0000
(12:07 -0500)
committer
Greg Price
<price@mit.edu>
Tue, 18 Nov 2008 17:07:35 +0000
(12:07 -0500)
outgoing.mit.edu requires this.
svn path=/trunk/packages/invirt-web/; revision=1718
code/main.py
patch
|
blob
|
history
diff --git
a/code/main.py
b/code/main.py
index
540b3f4
..
a324306
100755
(executable)
--- a/
code/main.py
+++ b/
code/main.py
@@
-645,7
+645,8
@@
Subject: %s
%s
""" % (to, config.web.hostname, subject, body)
- p = subprocess.Popen(['/usr/sbin/sendmail', to], stdin=subprocess.PIPE)
+ p = subprocess.Popen(['/usr/sbin/sendmail', '-f', to, to],
+ stdin=subprocess.PIPE)
p.stdin.write(mail)
p.stdin.close()
p.wait()