Email Parsing/Email Polling and General Email Questions

Can anyone recommend a good class?
I am trying to add email checking functionality to a CRM and parse the contents to a database.

Do emails have unique identifiers?
I want to make sure I only process emails that have not yet been checked and delete the email after processing.

The pseudoworkflow will go like this.

-Check email if new mail

-process email with custom parsing functions e.g. customprocessor()
–parse email, add certain contents to Database

-if contents parsed, mark email as read, check next message.

Any help would be appreciated.


I haven’t used it, but Zend Framework has a Mail/Mime component. There is also PEAR’s [URL=]Mail_Mime. Otherwise you can always use the lower level [URL=]imap/mime extension.