1
0
Fork 0
django-mailbox/build/lib/django_mailbox/transports/base.py
2022-07-27 10:31:01 +02:00

11 lines
294 B
Python

import email
# Do *not* remove this, we need to use this in subclasses of EmailTransport
from email.errors import MessageParseError # noqa: F401
class EmailTransport:
def get_email_from_bytes(self, contents):
message = email.message_from_bytes(contents)
return message