include a return address in error mail
authorGreg Price <price@mit.edu>
Tue, 18 Nov 2008 17:07:35 +0000 (12:07 -0500)
committerGreg 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

index 540b3f4..a324306 100755 (executable)
@@ -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()