Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > net/imapライブラリ > Net::IMAPクラス > rename
rename(mailbox, newname)
Sends a RENAME command to change the name of the mailbox to the newname.