summaryrefslogtreecommitdiff
path: root/imap4d/testsuite/imap4d/IDEF0955.exp
blob: 52fad3d77c441d5de89eb4b7e1f6656c5097ef95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# -*- tcl -*-
# This file is part of Mailutils testsuite.
# Copyright (C) 2005, 2007, 2008, 2010, 2011 Free Software Foundation,
# Inc.
#  
# GNU Mailutils is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#   
# GNU Mailutils is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#  
# You should have received a copy of the GNU General Public License
# along with GNU Mailutils.  If not, see <http://www.gnu.org/licenses/>.

# Mailutils versions prior to 0.6.1 allowed to use any numbers in message
# sets, even those greater than the maximum id (message number or uid),
# available in the mailbox.
# Reported: by idefense.com on Thu, 12 May 2005 13:30:06 -0400
# References: <FB24803D1DF2A34FA59FC157B77C9705043322C1@IDSERV04.idef.com>

if { $MU_ULONG_MAX > 0 } {
    imap4d_start 
    imap4d_auth "user!passwd" "guessme"

    imap4d_test "SELECT mbox1" \
	"5 EXISTS"\
	"5 RECENT"\
	-re {OK \[UIDVALIDITY [0-9]+\] UID valididy status}\
	"OK \[UIDNEXT 6\] Predicted next uid"\
	"OK \[UNSEEN 1\] first unseen messsage"\
	"FLAGS (\\Answered \\Flagged \\Deleted \\Seen \\Draft)"\
	"OK \[PERMANENTFLAGS (\\Answered \\Deleted \\Seen)\] Permanent flags" \
	"OK"

    set limit [expr $MU_ULONG_MAX - 1]
    verbose "LIMIT is $limit"
    imap4d_test "FETCH 1:$limit FLAGS" \
	"OK"

    imap4d_test "UID FETCH 1:$limit FLAGS" \
	"OK"
} else {
    unsupported "IDEF0955";
}

# End of IDEF0955.exp

Return to:

Send suggestions and report system problems to the System administrator.