mirror of https://github.com/zulip/zulip.git
email-mirror: Encode messages as utf-8 before parsing
(imported from commit 7b896b1e24d382f024ab0a487d448d20448f0cca)
This commit is contained in:
parent
760cd7a474
commit
179be2051d
|
@ -318,7 +318,7 @@ class MirrorWorker(QueueProcessingWorker):
|
|||
# who gets a digest is entirely determined by the enqueue_digest_emails
|
||||
# management command, not here.
|
||||
def consume(self, event):
|
||||
mirror_email(email.message_from_string(event["message"]), rcpt_to=event["rcpt_to"])
|
||||
mirror_email(email.message_from_string(event["message"].encode("utf-8")), rcpt_to=event["rcpt_to"])
|
||||
|
||||
@assign_queue('test')
|
||||
class TestWorker(QueueProcessingWorker):
|
||||
|
|
Loading…
Reference in New Issue