79361510

Date: 2025-01-16 12:11:23
Score: 2
Natty:
Report link

Just a little addition... I was having problems with the email subject appearing to be UTF8 but coming through as =?UTF-8?B?SGVsbG/wn5iD8J+YhPCfmIHwn5iG?=

Adding the policy=default to the message_from_bytes call seems to have solved this.

I changed this line: message = message_from_bytes(envelope.content) to this: message = message_from_bytes(envelope.content, policy=default)

Now UTF8 subjects come through correctly.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Richard Shaw