php8.5
Home/ Manual/ imap / functions/ imap_renamemailbox

imap_renamemailbox

PHP function Edit on GitHub ✎

(PHP 4, PHP 5, PHP 7, PHP 8)

Rename an old mailbox to new mailbox

Description

imap_renamemailbox(IMAP\Connection $imap, string $from, string $to): bool

This function renames on old mailbox to new mailbox (see imap_open() for the format of mbox names).

Parameters

from

The old mailbox name, see imap_open() for more information

Insecure

to

The new mailbox name, see imap_open() for more information

Insecure

Return Values

Success

Changelog

VersionDescription

See Also

Source: reference/imap/functions/imap-renamemailbox.xml · from the official PHP manual (php/doc-en)