note 114726 added to function.imap-list
| From: | jemore at free dot fr | Date: | Sat, 29 Mar 2014 14:02:23 +0000 |
| Subject: | note 114726 added to function.imap-list | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199069@lists.php.net to get a copy of this message | ||
With the values returned from the imap_list function, you can search a message in the folder, but
you have to use the imap_reopen function before . Continuing the previous example (from c6h1206free
at gmail dot com )
<?php
$srv = '{imap.example.com}';
$conn = imap_open($srv, 'me', 'mypass');
$boxes = imap_list($conn, $srv, '*');
foreach($boxes as $box)
{
imap_reopen($srv, $box);
var_dump(imap_search($srv, "ALL"));
}
imap_close($conn);
?>
----
Server IP: 72.52.91.14
Probable Submitter: 93.8.8.153
----
Manual Page -- http://php.net/manual/en/function.imap-list.php
Edit -- https://master.php.net/note/edit/114726
Del: integrated -- https://master.php.net/note/delete/114726/integrated
Del: useless -- https://master.php.net/note/delete/114726/useless
Del: bad code -- https://master.php.net/note/delete/114726/bad+code
Del: spam -- https://master.php.net/note/delete/114726/spam
Del: non-english -- https://master.php.net/note/delete/114726/non-english
Del: in docs -- https://master.php.net/note/delete/114726/in+docs
Del: other reasons-- https://master.php.net/note/delete/114726
Reject -- https://master.php.net/note/reject/114726
Search -- https://master.php.net/manage/user-notes.php