aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-03-29 11:00:25 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-03-29 11:15:19 +0000
commit8541f2d39d1a712ce6d84b0947cf8f64c9384224 (patch)
tree4e68eee62c107ca566cab612d576818d8423f3d9 /tests
parent3a29ee41ef72c3a50d889e744ffdce6419234388 (diff)
ftpserver.pl: Updated argument code in STATUS_imap() to be more meaningful
Diffstat (limited to 'tests')
-rwxr-xr-xtests/ftpserver.pl11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl
index 2eed040d4..736425328 100755
--- a/tests/ftpserver.pl
+++ b/tests/ftpserver.pl
@@ -1450,15 +1450,18 @@ sub EXAMINE_imap {
}
sub STATUS_imap {
- my ($testno) = @_;
- fix_imap_params($testno);
+ my ($args) = @_;
+ my ($mailbox, $what) = split(/ /, $args, 2);
+ fix_imap_params($mailbox);
- logmsg "STATUS_imap got $testno\n";
+ logmsg "STATUS_imap got $args\n";
- if ($testno eq "") {
+ if ($mailbox eq "") {
sendcontrol "$cmdid BAD Command Argument\r\n";
}
else {
+ my $testno = $mailbox;
+
$testno =~ s/[^0-9]//g;
my $testpart = "";
if ($testno > 10000) {