Add use of `sender' parameter in `sendmail_send'.
authorDmitry Bogatov <KAction@gnu.org>
Wed, 23 Jan 2013 20:36:02 +0000 (00:36 +0400)
committerW. Trevor King <wking@tremily.us>
Wed, 23 Jan 2013 22:19:33 +0000 (17:19 -0500)
Signed-off-by: Dmitry Bogatov <KAction@gnu.org>
rss2email/email.py

index 005b68a0fc43a9ab233d91b6993fafd05f3941ec..b8ccdd446c1af54a3c9b008d5a9fe16568e1000f 100644 (file)
@@ -160,7 +160,7 @@ def sendmail_send(sender, recipient, message, config=None, section='DEFAULT'):
         'sending message to {} via /usr/sbin/sendmail'.format(recipient))
     try:
         p = _subprocess.Popen(
-            ['/usr/sbin/sendmail', recipient],
+            ['/usr/sbin/sendmail', '-f', sender, recipient],
             stdin=_subprocess.PIPE, stdout=_subprocess.PIPE,
             stderr=_subprocess.PIPE)
         stdout,stderr = p.communicate(message.as_string()