Mailbox update
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user