mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	email-mirror: Encode messages as utf-8 before parsing
(imported from commit 7b896b1e24d382f024ab0a487d448d20448f0cca)
This commit is contained in:
		@@ -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):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user