mirror of
https://github.com/curl/curl.git
synced 2025-09-26 05:56:48 +03:00
ftpserver.pl: Added support for POP3 NOOP command
This commit is contained in:
parent
f8986a2b34
commit
c9617d9f93
|
@ -560,6 +560,7 @@ sub protocolsetup {
|
||||||
'CAPA' => \&CAPA_pop3,
|
'CAPA' => \&CAPA_pop3,
|
||||||
'DELE' => \&DELE_pop3,
|
'DELE' => \&DELE_pop3,
|
||||||
'LIST' => \&LIST_pop3,
|
'LIST' => \&LIST_pop3,
|
||||||
|
'NOOP' => \&NOOP_pop3,
|
||||||
'QUIT' => \&QUIT_pop3,
|
'QUIT' => \&QUIT_pop3,
|
||||||
'RETR' => \&RETR_pop3,
|
'RETR' => \&RETR_pop3,
|
||||||
'STAT' => \&STAT_pop3,
|
'STAT' => \&STAT_pop3,
|
||||||
|
@ -1326,6 +1327,19 @@ sub STAT_pop3 {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub NOOP_pop3 {
|
||||||
|
my ($args) = @_;
|
||||||
|
|
||||||
|
if ($args) {
|
||||||
|
sendcontrol "-ERR Protocol error\r\n";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
sendcontrol "+OK\r\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
sub QUIT_pop3 {
|
sub QUIT_pop3 {
|
||||||
sendcontrol "+OK byebye\r\n";
|
sendcontrol "+OK byebye\r\n";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user