From 4016733ded1999911d7e5f4df21ec66624d39c5c Mon Sep 17 00:00:00 2001 From: Greg Price Date: Tue, 18 Nov 2008 12:07:35 -0500 Subject: [PATCH] include a return address in error mail outgoing.mit.edu requires this. svn path=/trunk/packages/invirt-web/; revision=1718 --- code/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/main.py b/code/main.py index 540b3f4..a324306 100755 --- 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() -- 1.7.9.5