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