### University of Washington IMAP C-Client

If you do not have the University of Washington's IMAP c-client installed on your system, you will need to download the c-client source distribution (`http://www.washington.edu/imap/`) and compile it. Asterisk supports both the 2004 and 2006 versions of c-client, however mail_expunge_full is enabled in the 2006 version.

Note that Asterisk only uses the 'c-client' portion of the UW IMAP toolkit, but building it also builds an IMAP server and various other utilities. Because of this, the build instructions for the IMAP toolkit are somewhat complicated and can lead to confusion about what is needed.

If you are going to be connecting Asterisk to an existing IMAP server, then you don't need to care about the server or utilities in the IMAP toolkit at all. If you want to also install the UW IMAPD server, that is outside the scope of this document.

Building the c-client library is fairly straightforward; for example, on a Debian system there are two possibilities:

1. If you will not be using SSL to connect to the IMAP server:

               $ make slx SSLTYPE=none!

2. If you will be using SSL to connect to the IMAP server:

          $ make slx EXTRACFLAGS="-I/usr/include/openssl"

Once this completes you can proceed with the Asterisk build; there is no need to run 'make install'.