method
rename
v2_6_3 -
Show latest stable
- Class:
Net::IMAP
rename(mailbox, newname)public
Sends a RENAME command to change the name of the mailbox to newname.
A Net::IMAP::NoResponseError is raised if a mailbox with the name mailbox cannot be renamed to newname for whatever reason; for instance, because mailbox does not exist, or because there is already a mailbox with the name newname.