django-mailbox icon indicating copy to clipboard operation
django-mailbox copied to clipboard

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

Open acmisiti opened this issue 6 years ago • 4 comments

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

acmisiti avatar Feb 22 '19 16:02 acmisiti

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

coddingtonbear avatar Feb 22 '19 16:02 coddingtonbear

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

acmisiti avatar Feb 22 '19 17:02 acmisiti

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

acmisiti avatar Feb 24 '19 21:02 acmisiti

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 avatar Feb 26 '19 02:02 ses4j