I have a programmer working on a script that will read some email on my server and then do a number of things with it, including writing to mysql database and reading from that.
My programmer says this:
'SquirralMail doesnt use IMAP extension for PHP, it writes its own functions to read mails using pure php.'
That set me on course for trying the above.
I tried to build php with php included, but still see this:
In http://fokkohouwing.com/php.php, do not have modules imap that is loaded.
Command to build php; dont have imap.
'./configure' '--with-apxs' '--with-curl' '--with-curl-dir=/usr/local/lib' '--with-gd' '--with-gd-dir=/usr/local' '--with-gettext' '--with-jpeg-dir=/usr/local/lib' '--with-kerberos' '--with-mcrypt' '--with-mhash' '--with-mysql=/usr/local/mysql' '--with-pear' '--with-png-dir=/usr/local/lib' '--with-xml' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--with-zip' '--with-openssl' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-track-vars' '--enable-mbstring' '--enable-memory-limit'
File php.ini that is loaded at /usr/local/lib/php.ini doesnt use imap extentions.
Unfortunately I don't know enough about FreeBSD to help you. I've moved the thread to the FreeBSD 6.x forum. Maybe that'll help someone who can help you find it.