Mail::Cclient is a Perl module and gives access to mailboxes in many different formats (including remote IMAP folders) via the c-client API. The c-client library is the core library used by Pine and the University of Washington IMAP daemon (written by Mark Crispin). Sort, search, threading, and the SMTP API are supported.