I am using Zend_Mail_Storage_Imap to access email but using following code
$storage = new Zend_Mail_Storage_Imap($imap);
$allIds = $storage->getUniqueId(); // i get all key value pair of meesageid and uniqueid
foreach ($allIds as $k => $v)
{
echo '<li>' . htmlentities($storage->getMessage($v)->subject) . "</li>\n";
}
My problem is that it loops and get one email at a time which is slow like getting two emails per second which is very slow . I am looking for batch retreival method of these mails but could not find any . Did anybody do it before