I am using Zend_Mail_Storage_Imap to access my email, but using the 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 receives one email at a time, which is slow, like receiving two emails per second, which is very slow. I am looking for a method for batch recovery of these letters, but could not find. Has anyone done this before
Abhishek chauhan
source share