Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
16718ca9
...
16718ca90cb779efceb7bf66af7e8e95a56ba36d
authored
2005-05-23 19:35:17 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Compute upper limit for the message set spec based on the value of MU_ULONG_MAX.
1 parent
f669ef51
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
29 deletions
imap4d/testsuite/imap4d/IDEF0955.exp
imap4d/testsuite/imap4d/IDEF0956.exp
imap4d/testsuite/imap4d/IDEF0955.exp
View file @
16718ca
...
...
@@ -23,23 +23,29 @@
# Reported: by idefense.com on Thu, 12 May 2005 13:30:06 -0400
# References: <FB24803D1DF2A34FA59FC157B77C9705043322C1@IDSERV04.idef.com>
imap4d_start
imap4d_auth
"user!passwd"
"guessme"
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"
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"
imap4d_test
"FETCH 1:4294967294 FLAGS"
\
"BAD FETCH Bogus number set"
set limit
[
expr
$MU_ULONG_MAX - 1
]
verbose
"LIMIT is
$limit
"
imap4d_test
"FETCH 1:
$limit
FLAGS"
\
"BAD FETCH Bogus number set"
imap4d_test
"UID FETCH 1:4294967294 FLAGS"
\
"BAD UID FETCH Bogus number set"
imap4d_test
"UID FETCH 1:
$limit
FLAGS"
\
"BAD UID FETCH Bogus number set"
}
else
{
unsupported
"IDEF0955"
;
}
# End of IDEF0955.exp
...
...
imap4d/testsuite/imap4d/IDEF0956.exp
View file @
16718ca
...
...
@@ -22,20 +22,26 @@
# Reported: by idefense.com on Thu, 12 May 2005 13:30:04 -0400
# References: <FB24803D1DF2A34FA59FC157B77C9705043322C0@IDSERV04.idef.com>
imap4d_start
imap4d_auth
"user!passwd"
"guessme"
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"
imap4d_test
"FETCH 1 BODY
\[
TEXT
\]
<0.4294967294>"
\
"BAD FETCH Completed"
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
...
...
Please
register
or
sign in
to post a comment