Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > net/imapライブラリ > Net::IMAPクラス > rename

instance method Net::IMAP#rename

rename(mailbox, newname)

Sends a RENAME command to change the name of the mailbox to the newname.