Fork me on GitHub

procimap

The ProcImap package provides an API for the IMAP protocol, subclassing from the mailbox and email packages provided by the Python standard library.

In addition, ProcImap contains a number of “utility” functions and classes, targeted for automatic processing/filtering of email messages inside an IMAP mailbox.

Author: Michael Goerz

This code is licensed under the GPL

Download

The latest released version is v.2.0, released August 6, 2010.

You can also clone the project with Git by running:

$ git clone git://github.com/goerz/procimap

Install

Preparations

You may have to edit some global variables before you install the package. If you are on Windows, you might want to set

DEFAULT_PAGER = 'more'

in ProcImap/ImapMailbox.py, and

STANDARD_IMAPLIB = True 

in ProcImap/ImapServer.py.

Make sure that you have a working python environment. Preferably, get Python from www.python.org. The Enthought Edition of Python on Windows is broken! At least last time I tried it.

Installation into your Python distro

To install the ProcImap package, run

$ python setup.py install

with sufficient privileges (i.e. as root on linux)

Usage

If you have run the installation successfully, the ProcImap package will be available in Python. Start programming! For examples, look in the example directory. Also, have a look at http://github.com/goerz/gmailbkp

The full API is available here