imap_num_msg doesn't return correct amount

156 Views Asked by At

So I go to /home/myname/Maildir/new and I see three files in that folder.

In PHP I do imap_num_msg(imap_open("{localhost:143/novalidate-cert}INBOX", "myname", "mypass")) and I get 1 as the output.

Shouldn't the numbers be the same?

I do sendmail myname@localhost < email.txt on the CLI and the message appears in /home/myname/Maildir/new and yet imap_num_msg doesn't see it.

0

There are 0 best solutions below