protected function _renameMailbox(Horde_Imap_Client_Mailbox $old, Horde_Imap_Client_Mailbox $new)
{
// Some IMAP servers will not allow a rename of a currently open
// mailbox.
if ($old->equals($this->_selected)) {
$this->close();
}
// RENAME returns no untagged information (RFC 3501 [6.3.5])
$this->_sendCmd($this->_command('RENAME')->add(array($this->_getMboxFormatOb($old), $this->_getMboxFormatOb($new))));
}