downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

imap_reopen> <imap_qprint
Last updated: Fri, 14 Aug 2009

view this page in

imap_renamemailbox

(PHP 4, PHP 5)

imap_renamemailboxRenomme une boîte aux lettres

Description

bool imap_renamemailbox ( resource $imap_stream , string $old_mbox , string $new_mbox )

imap_renamemailbox() renomme la boîte aux lettres old_mbox en new_mbox (voir la fonction imap_open() pour le format des noms mbox ).

Liste de paramètres

imap_stream

Un flux IMPA retourné par la fonction imap_open().

old_mbox

L'ancien nom de la boîte aux lettres, voir la documentation de la fonction imap_open() pour plus de détails

new_mbox

Le nouveau nom de la boîte aux lettres, voir la documentation de la fonction imap_open() pour plus de détails

Valeurs de retour

Cette fonction retourne TRUE en cas de succès, FALSE en cas d'échec.

Voir aussi



add a note add a note User Contributed Notes
imap_renamemailbox
josh at paducahwebpublishing dot com
03-Mar-2000 08:13
Don't let "...string old_mbox, string new_mbox);" fool you. You have to add the server and port to the mailbox name also. So it would be something like:

imap_renamemailbox($mailbox, "{localhost:143}$oldfolder", "{localhost:143}$newfolder")

Just thought I would point it out, it took me a while to figure it out.

imap_reopen> <imap_qprint
Last updated: Fri, 14 Aug 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites