I'm trying to accomplish the same thing. PHP with IMAP.
I have had to download IMAP, OpenSSL, and PHP.
Well I guess not OpenSSL, then compile imap with SSLTYPE=none
But my PHP croaks with:
configure: error: Cannot find rfc822.h. Please check your IMAP installation.
Still digging, can anybody help?
I also had to remove the with-curl because it wasn't finding that?!?
Let democracy prevail! Change the administration! Finance elections publicly!