rename-mailbox

Arguments: mailbox old-name new-name

This function changes the name of mailbox location in
mailbox named by old-name to
new-name. It's an error if
new-name already exists. There's a special
behavior if old-name is "inbox". In
this case all of the messages in "inbox" are moved to
new-name mailbox location, but the
"inbox" mailbox location continues to exist. Note: not all
imap servers support this special behavior of
renaming "inbox".