imap_search and results
| From: | Nicolas Diez | Date: | Wed, 25 Aug 2004 22:11:31 +0000 |
| Subject: | imap_search and results | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-194736@lists.php.net to get a copy of this message | ||
Hello,
I'm trying to make a small script to show mails on a imap server with
a criteria.
Here is my code :
/-------------------/
$mails = imap_search($mbox, 'TO "gentoo-user-fr@lists.gentoo.org"',SE_UID);
echo sizeof($mails);
/------------------/
The connection to the server is the working, the search also, the size
returned is not equal to 0.
But now I don't know how to retrieve the number of the messages in the array.
How can I do that ?