Note Submitter: admin at webes dot es
----
Just a note concerning "empty mailbox" error in case it helps somebody out there.
whenever the mailbox was empty, I kept on getting errors of the type "Warning: imap_header()..." as there were no messages to read headers of.
Reading through here I sussed that the first entry in "imap_errors()" gives you a clear "Mailbox is empty" if this is the case.
Knowing this, I can now code for not continuing with headers, etc if the mailbox is empty, something like:
$foo = imap_errors();
if($foo[0] !== "Mailbox is empty"){check headeres etc... };
Cheers
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.