(PHP 4, PHP 5)
imap_renamemailbox — Rename an old mailbox to new mailbox
This function renames on old mailbox to new mailbox (see imap_open() for the format of mbox names).
An IMAP stream returned by imap_open().
The old mailbox name, see imap_open() for more information
The new mailbox name, see imap_open() for more information
Возвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки.