note 45236 added to function.imap-mailboxmsginfo

From: Date: Mon, 30 Aug 2004 21:41:54 +0000
Subject: note 45236 added to function.imap-mailboxmsginfo
Groups: php.notes 
Request: Send a blank email to php-notes+get-75689@lists.php.net to get a copy of this message
About the slowness of imap_mailboxmsginfo() : if used on an IMAP connection, I did checked my mailserver logs and it appeared to send FETCH commands to retrieve the headers of EVERY messages of the mailbox ... So, if you have, let's say, 400 messages in a folder, the function will be very slow (>1.5 sec on a local server !) ... I strongly advise you to use imap_status() instead, which only sends one < STATUS "Mailbox/Name" (MESSAGES UNSEEN) > and is actually a lot faster (at least with IMAP, but that's maybe not true with POP3) ---- Manual Page -- http://www.php.net/manual/en/function.imap-mailboxmsginfo.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45236 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45236&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45236&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#75689) next »