views:

205

answers:

1

Hi overflowers,

After reading a message's state in Zend_Mail_Storage_Imap with $message->getHeaders(). How do I then set that mail as read?

setHeaders(Zend_Mail_Storage::FLAG_SEEN);

Thanks,

Dan

A: 

$imap = new Zend_Mail_Storage_Imap($config);

$imap->setFlags($message_id,array(Zend_Mail_Storage::FLAG_SEEN));

micrub