#
# Install c-cient
#
mkdir  -p                         /usr/include/imap       &&
cp     -f  ./c-client/*.h         /usr/include/imap/      &&
cp     -f  ./c-client/c-client.a  /usr/lib/libc-client.a  &&

cp  -f  ./imapd/imapd   /usr/sbin/  &&
cp  -f  ./ipopd/ipop2d  /usr/sbin/  &&
cp  -f  ./ipopd/ipop3d  /usr/sbin/  &&
cp  -f  ./mtest/mtest   /usr/bin/   &&

if  spell_ok  stunnel;  then
  ln -sf $TRACK_ROOT/etc/stunnel/stunnel.pem   \
           /etc/ssl/certs/imapd.pem   &&
  ln -sf $TRACK_ROOT/etc/stunnel/stunnel.pem   \
           /etc/ssl/certs/ipop3d.pem
fi  &&

message  "${MESSAGE_COLOR}If you get 'unknown AUTHORIZATION state command'"  &&
message  "Then you probably want to edit /etc/xinetd.d/imapd-stunnel"        &&
message  "and use imap without stunnel encapsulation... ${DEFAULT_COLOR}"
