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

http://docs.python.org/lib/module-email.html
http://docs.python.org/lib/module-mailbox.html

Cheers

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
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to