mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-09 22:38:19 +02:00
14 lines
No EOL
328 B
Python
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 |