On Thu, 28 Jun 2007 18:44:02 -0300, Bruno Barberi Gnecco <[EMAIL PROTECTED]> wrote: > It seems that this question has been asked a few times in this >group before, but sometime has passed since the last post and maybe there's >something new. I'm looking for a high level IMAP library--I know of imaplib, >but it's awfully documented and I was hoping to avoid reading RFCs for >a simple email reader routine. > > So, is there any example, routine, library or code in some software >package that reads mails from IMAP, with attachments? I don't need anything >fancy, just reading the emails and decoding them. > > If there isn't, I'm willing to write one and release it under LGPL. >Anybody would like to help? >
For the IMAP4 part of this, I'd suggest Twisted's IMAP4 library. To deal with attachments and other MIME features, you can use the stdlib email package to parse the message into a structured form and then process it appropriately. Jean-Paul -- http://mail.python.org/mailman/listinfo/python-list