From: Dmitry Bogatov Date: Wed, 23 Jan 2013 20:36:02 +0000 (+0400) Subject: Add use of `sender' parameter in `sendmail_send'. X-Git-Tag: v3.0~15 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c1b6864b978f5248a2ed246848aac5da0399ad47;p=rss2email.git Add use of `sender' parameter in `sendmail_send'. Signed-off-by: Dmitry Bogatov --- 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()