forked from mirror/django-mailbox
* Update models.py, __init__.py, and office365.py * Update setup.py * Office365Transport properties * Update .gitignore * wrong folder stage * Update models.py * Update office365.py and models.py * office365 implementation * Update office365.py * clear code * fix import * Update readme.rst * archive and delete * fix and documentation * removed build folder * missing archive Co-authored-by: Pietro Mingo <p.mingo@intac.it> Co-authored-by: Serafim Bordei <s.bordei@intac.it>
12 lines
295 B
Python
12 lines
295 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
|
|
|