PyMOTW: imaplib

The Python Module of the Week this week is imaplib.


imaplib implements a client for communicating with Internet Message Access Protocol (IMAP) version 4 servers. The IMAP protocol defines a set of commands sent to the server and the responses delivered back to the client. Most of the commands are available as methods of the IMAP4 object used to communicate with the server.


The actual post is too long to publish on the blog, so click through if you’re interested. I’m a little new to IMAP, so if you have feedback on the examples please post comments here.
  • http://blog.elzapp.com/ elzapp

    This is awesome :)

    Thanks for this excellent introduction.

  • Anonymous

    can we create an imap folder with this lib ?

  • http://www.blogger.com/profile/01892352754222143463 Doug Hellmann

    Yes, to create an imap folder use the create() method on the IMAP4 object.