zephyr_mirror: Encode the content as utf-8 before sending to zwrite.

(imported from commit 8bc578701a99f98eb5cc3e179fef696514da0066)
This commit is contained in:
Tim Abbott 2012-11-04 06:50:36 -05:00
parent 2e69150790
commit 15689a5158

View file

@ -388,7 +388,7 @@ def forward_to_zephyr(message):
p = subprocess.Popen(zwrite_args, stdin=subprocess.PIPE,
stdout=subprocess.PIPE)
p.communicate(input=wrapped_content)
p.communicate(input=wrapped_content.encode("utf-8"))
def maybe_forward_to_zephyr(message):
if (message["sender_email"] == options.user + "@mit.edu"):