[Tutor] parse emails as they come in

Chris Fuller cfuller084 at thinkingplanet.net
Fri Mar 28 14:08:20 CET 2008

The email and mailbox modules might help you out.  Multiple email messages 
will probably parse as an mbox format mailbox.



On Friday 28 March 2008 03:14, linuxian iandsd wrote:
> good morning everybody !
> I have scripted a small program to parse a 5 lines email message as it
> comes in to my inbox (this is handled by procmail & here is a wonderful
> intro to it : http://linuxfocus.org/English/November1997/article8.html)
> so every email is being parsed & information is extracted from it.
> but sometimes two or more emails come in at once so the input file that my
> python script has to parse is more than five lines !! my question is how do
> i effeciently manage this from within my original script.
> thanks

More information about the Tutor mailing list