I once parsed emails with Python2 some years ago.

It was hell.

Now I need to do it again. This time with Python3.

I am unsure whether to use the standard library or a third party library.

Can someone give me an advice?

  • I have my own problems with python's email parser, but I'm curious: Why was it hell for you? – ʇsәɹoɈ May 17 '16 at 20:58
  • (Also, this question might get more responses on stackoverflow.) – ʇsәɹoɈ May 17 '16 at 20:58
  • @ʇsәɹoɈ yes, this question would get more responses on stackoverflow. I know. What should I do? Several question on StackO got closed because I asked for a library. My point of view: Close softwarerecs, allow softwarerec questions on StackO. – guettli May 18 '16 at 9:59
  • @ʇsәɹoɈ what was hell? The unicode handling when parsing mails does not work well in Python2. – guettli May 18 '16 at 10:00

The standard email parser of Python is the standard Python library for parsing emails.

Some other worth mentioning are:

  1. Flanker: Open source email service by Mailgun
  2. Lbgmail: Python binding for interacting with the gmail emails
  3. Pyzmail

Personally, I would advise you to go with Flanker, which is a well-maintained library by people who are well versed with e-mail services.

  • Yes, Flanker looks good. Thank you – guettli Sep 25 '15 at 12:21
  • There's no indication that Flanker currently works with Python 3, which was the whole point of the question. – John Y Sep 25 '15 at 16:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.