1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

ftpserver.pl: Fixed IMAP SEARCH command

This commit is contained in:
Steve Holme 2013-08-28 18:51:59 +01:00
parent c3b513e75c
commit 13a2e32548

View File

@ -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;