public function renameFolder($name, $newname) {
        return imap_renamemailbox($this->imap, $this->mailbox . $name, $this->mailbox . $newname);
    }
public function renameFolder($name, $newname) {
        return imap_renamemailbox($this->imap, $this->mailbox . $name, $this->mailbox . $newname);
    }
public function renameFolder ( $ name , $ newname ) { return imap_renamemailbox ( $ this -> imap , $ this -> mailbox . $ name , $ this -> mailbox . $ newname ) ; }
Rename a folder

@param string $name of the folder
@param string $newname of the folder
@return bool success or not
Rename a folder