ftpserver.pl: Updated argument code in STATUS_imap() to be more meaningful
This commit is contained in:
parent
3a29ee41ef
commit
8541f2d39d
@ -1450,15 +1450,18 @@ sub EXAMINE_imap {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub STATUS_imap {
|
sub STATUS_imap {
|
||||||
my ($testno) = @_;
|
my ($args) = @_;
|
||||||
fix_imap_params($testno);
|
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";
|
sendcontrol "$cmdid BAD Command Argument\r\n";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
my $testno = $mailbox;
|
||||||
|
|
||||||
$testno =~ s/[^0-9]//g;
|
$testno =~ s/[^0-9]//g;
|
||||||
my $testpart = "";
|
my $testpart = "";
|
||||||
if ($testno > 10000) {
|
if ($testno > 10000) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user