note 123737 added to function.imap-list

From: Date: Thu, 04 Apr 2019 11:51:55 +0000
Subject: note 123737 added to function.imap-list
Groups: php.notes 
Request: Send a blank email to php-notes+get-210519@lists.php.net to get a copy of this message
Please be aware that if you are trying to list an empty mailbox, imap_list will return FALSE as if there was an error instead of an empty array() as one may expect. Example: With a brand new account created on your mail server, with an empty INBOX, you will get: $list = imap_list( $imap_stream, $ref, "INBOX/*"); var_dump( $list ); // bool(false) ---- Server IP: 208.43.231.9 Probable Submitter: 185.85.3.194 (proxied: 90.63.223.202) ---- Manual Page -- http://php.net/manual/en/function.imap-list.php Edit -- https://master.php.net/note/edit/123737 Del: integrated -- https://master.php.net/note/delete/123737/integrated Del: useless -- https://master.php.net/note/delete/123737/useless Del: bad code -- https://master.php.net/note/delete/123737/bad+code Del: spam -- https://master.php.net/note/delete/123737/spam Del: non-english -- https://master.php.net/note/delete/123737/non-english Del: in docs -- https://master.php.net/note/delete/123737/in+docs Del: other reasons-- https://master.php.net/note/delete/123737 Reject -- https://master.php.net/note/reject/123737 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#210519) next »