Mailbox update

This commit is contained in:
Torsten Schulz
2023-06-16 16:25:45 +02:00
parent 45bc236112
commit 41d15e5b38
2 changed files with 5 additions and 5 deletions

View File

@@ -612,9 +612,9 @@ class Mailbox
* This function returns an object containing status information.
* The object has the following properties: messages, recent, unseen, uidnext, and uidvalidity.
*/
public function statusMailbox(): stdClass
public function statusMailbox(?string $mailbox = null): stdClass
{
return Imap::status($this->getImapStream(), $this->imapPath, SA_ALL);
return Imap::status($this->getImapStream(), $mailbox ?: $this->imapPath, SA_ALL);
}
/**