1
0
Fork 0
django-mailbox/django_mailbox/transports/base.py
2024-02-28 11:42:21 -08:00

14 lines
No EOL
328 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
def close(self):
pass