2014-04-25 16:37:51 -07:00
|
|
|
import email
|
|
|
|
|
|
|
|
|
|
# Do *not* remove this, we need to use this in subclasses of EmailTransport
|
2019-10-15 05:31:13 +02:00
|
|
|
from email.errors import MessageParseError # noqa: F401
|
2014-04-25 16:37:51 -07:00
|
|
|
|
|
|
|
|
|
2019-10-15 05:31:13 +02:00
|
|
|
class EmailTransport:
|
2014-04-25 16:37:51 -07:00
|
|
|
def get_email_from_bytes(self, contents):
|
2019-10-15 05:31:13 +02:00
|
|
|
message = email.message_from_bytes(contents)
|
2014-04-25 16:37:51 -07:00
|
|
|
|
|
|
|
|
return message
|
2024-02-28 11:42:21 -08:00
|
|
|
|
|
|
|
|
def close(self):
|
2024-05-24 09:25:54 +02:00
|
|
|
pass
|