Hello everyone,

I'd like to limit the Zend_Mail_Storage_Imap iterator using
LimitIterator, so what I do is:

    $mail = new Zend_Mail_Storage_Imap(array('host'     => localhost,
                                             'user'     => 'test',
                                             'password' => 'secret'));

    $mail = new LimitIterator($mail, 0, 50);

    print_r(iterator_to_array($mail));

But all I get is empty array. Am I doing something wrong or the
implementation od Zend_Mail_Storage_* is incorrect?

Regards,
Bartosz

Reply via email to