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 — Nimmt eine bereits gesetzte Löschmarkierung einer Nachricht zurück
$imap
, string $message_num
, int $flags
= 0
) : boolEntfernt das "gelöscht"-Flag der angegebenen Nachricht. Das Flag wird von den Funktionen imap_delete() oder imap_mail_move() gesetzt.
imap
Eine von imap_open() zurückgegebene IMAP-Verbindung.
message_num
Die Nummer der Nachricht
flags
Gibt bei Erfolg true
zurück. Im Fehlerfall wird false
zurückgegeben.
The imap_delete function allows the option to use a UID for the message number but the imap_undelete function does not.