aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-08-28 18:51:59 +0100
committerSteve Holme <steve_holme@hotmail.com>2013-08-28 18:51:59 +0100
commit13a2e325489d12396a6107594d99e77f1f418c13 (patch)
tree9fc2db013ddb84cafa9fb5bd0610854e1a3cfb57 /tests
parentc3b513e75ce4defdbba3a14914ef1b88121171c9 (diff)
ftpserver.pl: Fixed IMAP SEARCH command
Diffstat (limited to 'tests')
-rwxr-xr-xtests/ftpserver.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl
index 0e4a7bce6..d5ae6bbf6 100755
--- a/tests/ftpserver.pl
+++ b/tests/ftpserver.pl
@@ -1033,12 +1033,13 @@ sub STATUS_imap {
}
sub SEARCH_imap {
- my ($testno) = @_;
- fix_imap_params($testno);
+ my ($what) = @_;
+ my $testno = $selected;
+ fix_imap_params($what);
logmsg "SEARCH_imap got test $testno\n";
- $testno =~ s/[^0-9]//g;
+ $testno =~ s/^([^0-9]*)//;
my $testpart = "";
if ($testno > 10000) {
$testpart = $testno % 10000;