I am in need of a php script that will:
-retrieve NEW email messages from an email inbox (ones that haven't been read yet)
-parse each of these messages
-provide the following info about each message:
From Address (& name of person from, if provided)
Reply To address
Whether there are any attachments
-once the email is parsed, it can be marked as READ so it doesn't appear again, for example, if we refresh the page.
-ideally, i would need to get the information about each message, so perhaps putting it in an array would be best?
-the message should NOT be deleted by this script, that will be taken care of in another script.
Some background - eventually, the email subject and body will be combined, and put through project 18826, to search through the message for supplied keywords. Each message would have to be searched individually, hence putting them in an array?
I am open to suggestions / comments. Please ask me any questions you can think of.