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