The imap_delete function allows the option to use a UID for the message number but the imap_undelete function does not.
(PHP 4, PHP 5, PHP 7, PHP 8)
imap_undelete — Enlève la marque d'effacement d'un message
$imap
, string $message_num
, int $flags
= 0): bool
Enlève la marque d'effacement du message
message_num
, placée avec
imap_delete() ou imap_mail_move().
imap
Un flux IMAP retourné par la fonction imap_open().
message_num
Le numéro du message
flags
Cette fonction retourne true
en cas de succès ou false
si une erreur survient.
The imap_delete function allows the option to use a UID for the message number but the imap_undelete function does not.