ImapClient that can handle several ImapMailboxes.
It supports Imap-ACL and Sieve-Scripts
you can view and download cvs-sources:
http://cvs.net-labs.de/viewcvs.cgi/ZopeProducts/ImapClient
or:
$>cvs -d:pserver:[email protected]:/data/cvs login
password: anonymous
$>cvs -d:pserver:[email protected]:/data/cvs -z9 co ZopeProducts/ImapClient