projects
/
rss2email.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23dd7fb
)
Convert message string to bytes for sendmail.
author
W. Trevor King
<wking@tremily.us>
Fri, 5 Oct 2012 01:45:52 +0000
(21:45 -0400)
committer
W. Trevor King
<wking@tremily.us>
Fri, 5 Oct 2012 01:45:52 +0000
(21:45 -0400)
rss2email.py
patch
|
blob
|
history
diff --git
a/rss2email.py
b/rss2email.py
index 2e76e248f89d4f3256416c15169ad16627695bef..7a94c5f3d1c54b66b3a28dad09111ce626fe0cb2 100755
(executable)
--- a/
rss2email.py
+++ b/
rss2email.py
@@
-500,7
+500,7
@@
def sendmail_send(sender, recipient, message, config=None, section='DEFAULT'):
['/usr/sbin/sendmail', recipient],
stdin=_subprocess.PIPE, stdout=_subprocess.PIPE,
stderr=_subprocess.PIPE)
- stdout,stderr = p.communicate(message.as_string())
+ stdout,stderr = p.communicate(message.as_string()
.encode('ascii')
)
status = p.wait()
if status:
raise SendmailError(status=status, stdout=stdout, stderr=stderr)