1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-15 14:05:03 -05:00

ftpserver.pl: Added SELECT check to IMAP SEARCH command

This commit is contained in:
Steve Holme 2013-08-28 18:56:19 +01:00
parent 13a2e32548
commit 4ae7b7ea69

View File

@ -1034,9 +1034,13 @@ sub STATUS_imap {
sub SEARCH_imap {
my ($what) = @_;
my $testno = $selected;
fix_imap_params($what);
if ($selected eq "") {
sendcontrol "$cmdid BAD Command received in Invalid state\r\n";
else {
my $testno = $selected;
logmsg "SEARCH_imap got test $testno\n";
$testno =~ s/^([^0-9]*)//;
@ -1055,6 +1059,7 @@ sub SEARCH_imap {
}
sendcontrol "$cmdid OK SEARCH completed\r\n";
}
return 0;
}