I am looking to build functionality to read all unread email messages in a given emailbox (using a cronjob), access the header, and then access the contents of the message. I have spent some time reviewing the imap functions, and I am finding it all a bit confusing. I was wondering if anyone has a working example that would help me.
Thank you very much,
Mel