1--TEST-- 2imap_undelete() passing a unique ID 3--SKIPIF-- 4<?php 5require_once(__DIR__.'/setup/skipif.inc'); 6?> 7--FILE-- 8<?php 9 10require_once(__DIR__.'/setup/imap_include.inc'); 11 12$imap_mail_box = setup_test_mailbox_for_uid_tests("imapundeleteuid", $msg_no, $uid); 13 14imap_delete($imap_mail_box, $uid, FT_UID); 15imap_undelete($imap_mail_box, $uid, FT_UID); 16imap_expunge($imap_mail_box); 17 18var_dump(imap_search($imap_mail_box, 'ALL', SE_UID)); 19 20imap_close($imap_mail_box); 21 22?> 23--CLEAN-- 24<?php 25$mailbox_suffix = 'imapundeleteuid'; 26require_once(__DIR__ . '/setup/clean.inc'); 27?> 28--EXPECT-- 29Create a temporary mailbox and add 10 msgs 30New mailbox created 31Delete 4 messages for Unique ID generation 32array(6) { 33 [0]=> 34 int(1) 35 [1]=> 36 int(2) 37 [2]=> 38 int(7) 39 [3]=> 40 int(8) 41 [4]=> 42 int(9) 43 [5]=> 44 int(10) 45} 46