When trying to compile php with imap, php can find rfc822.h. Where is it?
You need to finish reading the instructions at: http://www.php.net/manual/en/ref.imap.php which say: “… Then copy c-client/c-client.a to /usr/local/lib/libc-client.a or some other directory on your link path and copy c-client/rfc822.h, mail.h and linkage.h to /usr/local/include or some other directory in your include path.” 10.