private function initMailbox(): void
    {
        if (null === $this->mailbox || self::isMailboxOpen($this->mailbox, $this->resource)) {
            return;
        }

        \imap_reopen($this->resource, $this->mailbox->getFullEncodedName());

        if (self::isMailboxOpen($this->mailbox, $this->resource)) {
            return;
        }

        throw new ReopenMailboxException(\sprintf('Cannot reopen mailbox "%s"', $this->mailbox->getName()));
    }
private function initMailbox(): void
    {
        if (null === $this->mailbox || self::isMailboxOpen($this->mailbox, $this->resource)) {
            return;
        }

        \imap_reopen($this->resource, $this->mailbox->getFullEncodedName());

        if (self::isMailboxOpen($this->mailbox, $this->resource)) {
            return;
        }

        throw new ReopenMailboxException(\sprintf('Cannot reopen mailbox "%s"', $this->mailbox->getName()));
    }
private function initMailbox ( ) : void { if ( null === $ this -> mailbox || self :: isMailboxOpen ( $ this -> mailbox , $ this -> resource ) ) { return ; } \ imap_reopen ( $ this -> resource , $ this -> mailbox -> getFullEncodedName ( ) ) ; if ( self :: isMailboxOpen ( $ this -> mailbox , $ this -> resource ) ) { return ; } throw new ReopenMailboxException ( \ sprintf ( 'Cannot reopen mailbox "%s"' , $ this -> mailbox -> getName ( ) ) ) ; }
If connection is not currently in this mailbox, switch it to this mailbox.
If connection is not currently in this mailbox switch it to this mailbox .