Wednesday, July 30, 2014

POP and IMAP Python email parsing;

After some investigation and coding with these methot I found that IMAP is the preffered solution to do searches and actions (like marking as read), you can do that with POP but after downloading the INBOX, and then you have to unravel the result, using REGEX for example, interpret etc.
with IMAP  (https://docs.python.org/2/library/imaplib.html) you have handy all the RTFC email commands.

The code I made can be used as an example of a simple email client reader and filterer:
https://github.com/RafaelOrtiz/imap-pop, that is a request of some forum users and programmers.



No comments: