Hey everyone, I'm working on a script that hopefully would be able to read e-mails that are sent to the user and then stuff the messages into a MySQL database. But I'm stuck before I can start. Does anyone know a good way to access the mail directly through PHP? I'm considering either parsing the /var/spool/mail/username file or attempting to popen() the "/bin/mail" command, but the latter has failed so far, and the former seems a bit too daunting. I'm sure someone has thought of this before. Does anyone know an easy way to do it?
Thanks,
Mike