email-mirror: Encode messages as utf-8 before parsing

(imported from commit 7b896b1e24d382f024ab0a487d448d20448f0cca)
This commit is contained in:
Luke Faraone 2014-01-28 14:10:17 -05:00
parent 760cd7a474
commit 179be2051d
1 changed files with 1 additions and 1 deletions

View File

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