|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-12-23 14:41 UTC] wdehoog at exalondelft dot nl
-Status: Open
+Status: Closed
[2013-12-23 14:41 UTC] wdehoog at exalondelft dot nl
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 20 16:00:02 2025 UTC |
Description: ------------ My php script walks a collection mailboxes to perform an imap_search. When I open each mailbox using imap_open the results are always correct. imap_open however is very slow so I started to use imap_reopen. Unfortunately imap_search now often does not find anything anymore. Sometimes it finds them all, sometimes only in some of the mailboxes but most of the time it finds nothing. Restarting apache or dovecot (imap server) does not make any difference. Doing an imap_open after 5 times imap_reopen make the script show more results but still not all of them. Test script: --------------- $reopened = imap_reopen($stream, $current_mailbox['mailserver'].$val['name'], OP_READONLY); if($reopened) { $emails = imap_search($stream, $imap_pattern, SE_UID); ... } Expected result: ---------------- bot after imap_open as well as after imap_reopen the imap_search function should be able to find the mails.