Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message fails to save eml, body, text when encoded with non base64 email #201

Open
acmisiti opened this issue Feb 22, 2019 · 4 comments · May be fixed by #202
Open

Message fails to save eml, body, text when encoded with non base64 email #201

acmisiti opened this issue Feb 22, 2019 · 4 comments · May be fixed by #202

Comments

@acmisiti
Copy link

I am working on an app the uses django mailbox to poll an email and read in the messages to process them. I noticed that if the email is not base64 (Message.encoded = False) the message contents appear to be empty for eml, text, html, body and the Message.get_email_object() is also empty. Is there anyway to fix this? My polling / processing algorithm fails because of this because the software is based around the exact received timestamp that I get using the email object.

django mailbox version: 4.7.1

@coddingtonbear
Copy link
Owner

Sort of curious why the messages weren't encoded; iirc, encoding has been the default behavior for a really long time.

@acmisiti
Copy link
Author

@coddingtonbear any suggestions on what I can do to debug this? Or provide you more information to help determine why this is happening?

@acmisiti
Copy link
Author

One thing I noticed is that all the emails appear to be from microsoft email servers.

@ses4j
Copy link

ses4j commented Feb 26, 2019

This issue is actually caused by the same Python bug as #136. The patch added to that issue now manifests as an unparsed email, which is probably not ideal, as the email is fine...

@ses4j ses4j linked a pull request Feb 26, 2019 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants