Skip to content
Advertisement

Tag: imap

How to find uid of existing python email object

I have been reading through this document. Most of the document is based on finding an email’s uid. From the article: I’m working with a django app called django-mailbox (http://django-mailbox.readthedocs.org/en/latest/index.html) the purpose of which is to consume emails. The app creates a “Message” model that looks like: using the python “email” library I can select a record from a django

IMAP get sender name and body text?

I am using this code: and it works, except, when I print raw_email it returns a bunch of extra information, how can I, parse, per say, the extra information and get just the From and body text? Answer Python’s email package is probably a good place to start. That should do ask you ask, though when an email has multiple

Advertisement