Removed leftovers of the old uidvalidity stuff.
Showing
1 changed file
with
4 additions
and
13 deletions
... | @@ -18,28 +18,20 @@ | ... | @@ -18,28 +18,20 @@ |
18 | 18 | ||
19 | imap4d_start | 19 | imap4d_start |
20 | imap4d_auth "user!passwd" "guessme" | 20 | imap4d_auth "user!passwd" "guessme" |
21 | |||
22 | proc get_uidvalidity {} { | ||
23 | regsub "(\[0-9\]*)\[0-9\]" "[clock seconds]" "\\1\[0-9\]" val | ||
24 | return $val | ||
25 | } | ||
26 | |||
27 | imap4d_test "EXAMINE INBOX"\ | 21 | imap4d_test "EXAMINE INBOX"\ |
28 | "95 EXISTS"\ | 22 | "95 EXISTS"\ |
29 | "95 RECENT"\ | 23 | "95 RECENT"\ |
30 | -re "OK \\\[UIDVALIDITY [get_uidvalidity]\\\] UID valididy status"\ | 24 | -re "OK \\\[UIDVALIDITY [imap4d_uidvalidity]\\\] UID valididy status"\ |
31 | "OK \[UIDNEXT 96\] Predicted next uid"\ | 25 | "OK \[UIDNEXT 96\] Predicted next uid"\ |
32 | "OK \[UNSEEN 1\] first unseen messsage"\ | 26 | "OK \[UNSEEN 1\] first unseen messsage"\ |
33 | "FLAGS (\\Answered \\Flagged \\Deleted \\Seen \\Draft)"\ | 27 | "FLAGS (\\Answered \\Flagged \\Deleted \\Seen \\Draft)"\ |
34 | "OK \[PERMANENTFLAGS ()\] No Permanent flags"\ | 28 | "OK \[PERMANENTFLAGS ()\] No Permanent flags"\ |
35 | "OK \[READ-ONLY\] EXAMINE Completed" | 29 | "OK \[READ-ONLY\] EXAMINE Completed" |
36 | 30 | ||
37 | set UIDVALIDITY [clock seconds] | ||
38 | |||
39 | imap4d_test "SELECT INBOX"\ | 31 | imap4d_test "SELECT INBOX"\ |
40 | "95 EXISTS"\ | 32 | "95 EXISTS"\ |
41 | "95 RECENT"\ | 33 | "95 RECENT"\ |
42 | -re "OK \\\[UIDVALIDITY [get_uidvalidity]\\\] UID valididy status"\ | 34 | -re "OK \\\[UIDVALIDITY [imap4d_uidvalidity]\\\] UID valididy status"\ |
43 | "OK \[UIDNEXT 96\] Predicted next uid"\ | 35 | "OK \[UIDNEXT 96\] Predicted next uid"\ |
44 | "OK \[UNSEEN 1\] first unseen messsage "\ | 36 | "OK \[UNSEEN 1\] first unseen messsage "\ |
45 | "FLAGS (\\Answered \\Flagged \\Deleted \\Seen \\Draft)"\ | 37 | "FLAGS (\\Answered \\Flagged \\Deleted \\Seen \\Draft)"\ |
... | @@ -47,18 +39,17 @@ imap4d_test "SELECT INBOX"\ | ... | @@ -47,18 +39,17 @@ imap4d_test "SELECT INBOX"\ |
47 | "OK \[READ-WRITE\] SELECT Completed" | 39 | "OK \[READ-WRITE\] SELECT Completed" |
48 | 40 | ||
49 | imap4d_test "STATUS INBOX (MESSAGES RECENT UNSEEN UIDVALIDITY UIDNEXT)" \ | 41 | imap4d_test "STATUS INBOX (MESSAGES RECENT UNSEEN UIDVALIDITY UIDNEXT)" \ |
50 | -re "STATUS INBOX \\(MESSAGES 95 RECENT 95 UNSEEN 95 UIDVALIDITY [get_uidvalidity] UIDNEXT 96 \\)" \ | 42 | -re "STATUS INBOX \\(MESSAGES 95 RECENT 95 UNSEEN 95 UIDVALIDITY [imap4d_uidvalidity] UIDNEXT 96 \\)" \ |
51 | "OK" | 43 | "OK" |
52 | 44 | ||
53 | imap4d_test "STATUS mbox1 (MESSAGES RECENT UNSEEN UIDNEXT)" \ | 45 | imap4d_test "STATUS mbox1 (MESSAGES RECENT UNSEEN UIDNEXT)" \ |
54 | "STATUS mbox1 (MESSAGES 4 RECENT 4 UNSEEN 4 UIDNEXT 5 )" \ | 46 | "STATUS mbox1 (MESSAGES 4 RECENT 4 UNSEEN 4 UIDNEXT 5 )" \ |
55 | "OK" | 47 | "OK" |
56 | 48 | ||
57 | set U [clock seconds] | ||
58 | imap4d_test "EXAMINE mbox1" \ | 49 | imap4d_test "EXAMINE mbox1" \ |
59 | "4 EXISTS"\ | 50 | "4 EXISTS"\ |
60 | "4 RECENT"\ | 51 | "4 RECENT"\ |
61 | -re "OK \\\[UIDVALIDITY [get_uidvalidity]\\\] UID valididy status"\ | 52 | -re "OK \\\[UIDVALIDITY [imap4d_uidvalidity]\\\] UID valididy status"\ |
62 | "OK \[UIDNEXT 5\] Predicted next uid"\ | 53 | "OK \[UIDNEXT 5\] Predicted next uid"\ |
63 | "OK \[UNSEEN 1\] first unseen messsage"\ | 54 | "OK \[UNSEEN 1\] first unseen messsage"\ |
64 | "FLAGS (\\Answered \\Flagged \\Deleted \\Seen \\Draft)"\ | 55 | "FLAGS (\\Answered \\Flagged \\Deleted \\Seen \\Draft)"\ | ... | ... |
-
Please register or sign in to post a comment