Sadly, it doesnt do the trick. I get the following error with easyapache:
./buildscript: line 792: ./utils/build_prep.pl: No such file or directory
./buildscript: line 794: /usr/local/cpanel/src/3rdparty/bsd/imap-2004g/Makefile.new: No such file or directory
mv: cannot stat `/usr/local/cpanel/src/3rdparty/bsd/imap-2004g/Makefile.new': No such file or directory
./buildscript: line 797: cd: /usr/local/cpanel/src/3rdparty/bsd/imap-2004g: No such file or directory
So I extracted c-client.tar.Z to /usr/local/cpanel/src/3rdparty/bsd/, but it seems that something's still wrong:
./buildscript: line 792: ./utils/build_prep.pl: No such file or directory
Removing old processed sources and binaries...
sh -c 'rm -rf an ua OSTYPE SPECIALS c-client mtest imapd ipopd mailutil mlock dmail tmail || true'
cd tools;make clean
make[1]: Entering directory `/usr/local/cpanel/src/3rdparty/bsd/imap-2004g/tools'
sh -c 'rm -f *.o uahelper || true'
make[1]: Leaving directory `/usr/local/cpanel/src/3rdparty/bsd/imap-2004g/tools'
make: *** No rule to make target `imap'. Stop.
PHP will NOT compile with --with-imap option after this... I'm running cPanel 10.8.2-R119, PHP 4.4.2 on Fedora Core 4 with the latest updates.