imap

Check for unread emails

Greetings! I'm looking for a way to check the number of unread emails on an email account. Any tips? EDIT: As described in the tags, for C#. As I learned IMAP is the way to go and I confirmed all email accounts I'm going to use have IMAP activated :) ...

[PHP5] What is the structure result of imap_fetchstructure() method and how can I use this with the imapfetchbody() method ?

Hello everybody, I'm actually developing a webmail written in PHP5 with the native IMAP library and the Symfony framework. I have some difficulty to understand the structure result of the imap_fetchstructure() method and how can I use this with the imap_fetchbody() method to retrieve the body message. The PHP5 documentation specify tha...

How does IMAP structure emails with attachments?

I'm using Zend_Mail_Storage_Imap to retrieve messages. When the code retrieves an email with an attachment it contains 3 parts. The first part's content is the body of the email. The second part's content is the body of the email with some extra whitespace after it. The third part is the base64 attachment. Why is it showing two part...