简体   繁体   中英

python: libraries for parsing email

Are there libraries for email message parsing (particularly, from Gmail's IMAP server) in Python (except for the standard email library)?

Or if not, maybe there is some C++ library for this purpose (and I'll be able to use it through SWIG)?

This question does not make sense. You can access GMail either using IMAP or POP3. And for parsing retrieved emails you use the 'email' module of Python. Python provides support for all this out-of-the-box "all batteries included".

http://libgmail.sourceforge.net/ is a Python bindings to Gmail. Also you have Gdata apis in Python http://pypi.python.org/pypi/gdata/2.0.4 which can help interact with Gmail.

For other stuffs, the standard library module email is good pretty good. And Email messages are formatted according to RFC2822, a standard library module named rfc822 and mimetools may help you to deal with the contents of the email.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM