Checks the current mailbox status on the server. It is similar to imap_status, but will additionally sum up the size of all messages in the mailbox, which will take some additional time to execute.
An IMAP\Connection instance.
Returns the information in an object with following properties:
|Date||date of last change (current datetime)|
|Mailbox||name of the mailbox|
|Nmsgs||number of messages|
|Recent||number of recent messages|
|Unread||number of unread messages|
|Deleted||number of deleted messages|
Returns false on failure.
|8.1.0||The imap parameter expects an IMAP\Connection instance now; previously, a resource was expected.|