Closed scanner closed 2 months ago
Still happening:
[2024-06-24 05:19:01,306] ERROR:tasks.dispatch_incoming_email: Failed to deliver message <52e96afe-f935-4e70-9811-10bfb931eade@atl1s11mta909.xt.local> to 'ruth@deities.org'
Traceback (most recent call last):
File "/app/as_email/tasks.py", line 183, in dispatch_incoming_email
deliver_message(email_account, msg)
File "/app/as_email/deliver.py", line 76, in deliver_message
forward_message(email_account, msg)
File "/app/as_email/deliver.py", line 361, in forward_message
deliver_message_locally(email_account, msg)
File "/app/as_email/deliver.py", line 232, in deliver_message_locally
_add_msg_to_folder(folder, msg)
File "/app/as_email/deliver.py", line 168, in _add_msg_to_folder
msg_bytes = msg.as_bytes(policy=email.policy.default)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/email/message.py", line 208, in as_bytes
g.flatten(self, unixfrom=unixfrom)
File "/usr/local/lib/python3.12/email/generator.py", line 115, in flatten
self._write(msg)
File "/usr/local/lib/python3.12/email/generator.py", line 180, in _write
self._dispatch(msg)
File "/usr/local/lib/python3.12/email/generator.py", line 217, in _dispatch
meth(msg)
File "/usr/local/lib/python3.12/email/generator.py", line 275, in _handle_multipart
g.flatten(part, unixfrom=False, linesep=self._NL)
File "/usr/local/lib/python3.12/email/generator.py", line 115, in flatten
self._write(msg)
File "/usr/local/lib/python3.12/email/generator.py", line 180, in _write
self._dispatch(msg)
File "/usr/local/lib/python3.12/email/generator.py", line 217, in _dispatch
meth(msg)
File "/usr/local/lib/python3.12/email/generator.py", line 435, in _handle_text
super(BytesGenerator,self)._handle_text(msg)
File "/usr/local/lib/python3.12/email/generator.py", line 252, in _handle_text
self._write_lines(payload)
File "/usr/local/lib/python3.12/email/generator.py", line 154, in _write_lines
self.write(line)
File "/usr/local/lib/python3.12/email/generator.py", line 409, in write
self._fp.write(s.encode('ascii', 'surrogateescape'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'ascii' codec can't encode character '\u2013' in position 47: ordinal not in range(128)