Thursday, June 19, 2008

Install imap c-client

These functions enable you to operate with the IMAP protocol, as well as the NNTP, POP3 and local mailbox access methods.

Be warned however, that some of IMAP functions will not work correctly with the POP protocol.

Download c-client file

# wget ftp://ftp.cac.washington.edu/imap/c-client.tar.Z

# tar -zxvf c-client.tar.Z

# cd imap-2004g (this is the latest for now)

# vi Makefile (read inside which format you need to use, eg "slx", "lnp", "lrh", or "lsu")

For centos, we will use this

# make slx

Let's create directories for c-client, name varies on version.

# mkdir /usr/local/imap-2004g

Create libraries dir

# mkdir /usr/local/imap-2004g/lib

Create include dir

# mkdir /usr/local/imap-2004g/include

Change dir into the c-client dir.

# cd c-client/

Copy all .h files into /usr/local/imap-2004g/include/
# cp *.h /usr/local/imap-2004g/include/

Copy all .c files.
# cp *.c /usr/local/imap-2004g/lib/

Copy c-client.a
# cp c-client.a /usr/local/imap-2004g/lib/libc-client.a

0 comments: