mirror of https://github.com/zulip/zulip.git
zephyr_mirror: Encode the content as utf-8 before sending to zwrite.
(imported from commit 8bc578701a99f98eb5cc3e179fef696514da0066)
This commit is contained in:
parent
bd62c58a61
commit
605353027e
|
@ -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"):
|
||||
|
|
Loading…
Reference in New Issue