class Net::IMAP
def rename(mailbox, newname)
because there is already a mailbox with the name +newname+.
reason; for instance, because +mailbox+ does not exist, or
name +mailbox+ cannot be renamed to +newname+ for whatever
A Net::IMAP::NoResponseError is raised if a mailbox with the
to change the name of the +mailbox+ to +newname+.
Sends a {RENAME command [IMAP4rev1 ยง6.3.5]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.3.5]
def rename(mailbox, newname) send_command("RENAME", mailbox, newname) end