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 bd62c58a61
commit 605353027e
1 changed files with 1 additions and 1 deletions

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"):