summaryrefslogtreecommitdiff
path: root/imap4d/testsuite/imap4d/IDEF0956.exp
blob: 63016edcc15db2720a613e00526d22fce777793c (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
# -*- tcl -*-
# This file is part of Mailutils testsuite.
# Copyright (C) 2005, 2007, 2010 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 missed check for integer overflow
# in fetch_io. 
# Reported: by idefense.com on Thu, 12 May 2005 13:30:04 -0400
# References: <FB24803D1DF2A34FA59FC157B77C9705043322C0@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 BODY\[TEXT\]<0.$limit>" \
	"BAD FETCH Completed"
} else {
    unsupported "IDEF0956"
}
# End of IDEF0956.exp

Return to:

Send suggestions and report system problems to the System administrator.