src/IMAP/Folder.php
public function move($target_mailbox, $expunge = true) {
        $status = imap_renamemailbox($this->client->getConnection(), $this->path, $target_mailbox);
        if($expunge) $this->client->expunge();

        return $status;
    }
public function move($target_mailbox, $expunge = true) {
        $status = imap_renamemailbox($this->client->getConnection(), $this->path, $target_mailbox);
        if($expunge) $this->client->expunge();

        return $status;
    }
public function move ( $ target_mailbox , $ expunge = true ) { $ status = imap_renamemailbox ( $ this -> client -> getConnection ( ) , $ this -> path , $ target_mailbox ) ; if ( $ expunge ) $ this -> client -> expunge ( ) ; return $ status ; }
Move or Rename the current Mailbox

@param string $target_mailbox
@param boolean $expunge

@return bool

@throws Exceptions\ConnectionFailedException
Move or Rename the current Mailbox