Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
2ef83136
Commit
2ef83136
authored
11 years ago
by
Steve Holme
Browse files
Options
Downloads
Patches
Plain Diff
ftpserver.pl: Updated IMAP EXAMINE handler to use dynamic test data
parent
d737aa19
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/ftpserver.pl
+15
-8
15 additions, 8 deletions
tests/ftpserver.pl
with
15 additions
and
8 deletions
tests/ftpserver.pl
+
15
−
8
View file @
2ef83136
...
...
@@ -1001,14 +1001,21 @@ sub EXAMINE_imap {
logmsg
"
EXAMINE_imap got test
$testno
\n
";
# Example from RFC 3501, 6.3.2. EXAMINE Command
sendcontrol
"
* 17 EXISTS
\r\n
";
sendcontrol
"
* 2 RECENT
\r\n
";
sendcontrol
"
* OK [UNSEEN 8] Message 8 is first unseen
\r\n
";
sendcontrol
"
* OK [UIDVALIDITY 3857529045] UIDs valid
\r\n
";
sendcontrol
"
* OK [UIDNEXT 4392] Predicted next UID
\r\n
";
sendcontrol
"
* FLAGS (
\\
Answered
\\
Flagged
\\
Deleted
\\
Seen
\\
Draft)
\r\n
";
sendcontrol
"
* OK [PERMANENTFLAGS ()] No permanent flags permitted
\r\n
";
$testno
=~
s/[^0-9]//g
;
my
$testpart
=
"";
if
(
$testno
>
10000
)
{
$testpart
=
$testno
%
10000
;
$testno
=
int
(
$testno
/
10000
);
}
loadtest
("
$srcdir
/data/test
$testno
");
my
@data
=
getpart
("
reply
",
"
data
$testpart
");
for
my
$d
(
@data
)
{
sendcontrol
$d
;
}
sendcontrol
"
$cmdid
OK [READ-ONLY] EXAMINE completed
\r\n
";
return
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment