From: Steve Holme Date: Wed, 28 Aug 2013 17:51:59 +0000 (+0100) Subject: ftpserver.pl: Fixed IMAP SEARCH command X-Git-Tag: curl-7_33_0~202 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=13a2e325489d12396a6107594d99e77f1f418c13;p=curl ftpserver.pl: Fixed IMAP SEARCH command --- 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;