From c1b6864b978f5248a2ed246848aac5da0399ad47 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Thu, 24 Jan 2013 00:36:02 +0400 Subject: [PATCH] Add use of `sender' parameter in `sendmail_send'. Signed-off-by: Dmitry Bogatov --- rss2email/email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rss2email/email.py b/rss2email/email.py index 005b68a..b8ccdd4 100644 --- a/rss2email/email.py +++ b/rss2email/email.py @@ -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() -- 2.26.2