zephyr_mirror: Encode the content as utf-8 before sending to zwrite.
(imported from commit 8bc578701a99f98eb5cc3e179fef696514da0066)
This commit is contained in:
parent
2e69150790
commit
15689a5158
|
@ -388,7 +388,7 @@ def forward_to_zephyr(message):
|
||||||
|
|
||||||
p = subprocess.Popen(zwrite_args, stdin=subprocess.PIPE,
|
p = subprocess.Popen(zwrite_args, stdin=subprocess.PIPE,
|
||||||
stdout=subprocess.PIPE)
|
stdout=subprocess.PIPE)
|
||||||
p.communicate(input=wrapped_content)
|
p.communicate(input=wrapped_content.encode("utf-8"))
|
||||||
|
|
||||||
def maybe_forward_to_zephyr(message):
|
def maybe_forward_to_zephyr(message):
|
||||||
if (message["sender_email"] == options.user + "@mit.edu"):
|
if (message["sender_email"] == options.user + "@mit.edu"):
|
||||||
|
|
Loading…
Reference in a new issue