mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
ftpserver.pl: Moved POP3 QUIT handler into own function
This commit is contained in:
parent
56abdd07e7
commit
18c595fde2
@ -560,12 +560,12 @@ sub protocolsetup {
|
|||||||
'CAPA' => \&CAPA_pop3,
|
'CAPA' => \&CAPA_pop3,
|
||||||
'DELE' => \&DELE_pop3,
|
'DELE' => \&DELE_pop3,
|
||||||
'LIST' => \&LIST_pop3,
|
'LIST' => \&LIST_pop3,
|
||||||
|
'QUIT' => \&QUIT_pop3,
|
||||||
'RETR' => \&RETR_pop3,
|
'RETR' => \&RETR_pop3,
|
||||||
);
|
);
|
||||||
%displaytext = (
|
%displaytext = (
|
||||||
'USER' => '+OK We are happy you popped in!',
|
'USER' => '+OK We are happy you popped in!',
|
||||||
'PASS' => '+OK Access granted',
|
'PASS' => '+OK Access granted',
|
||||||
'QUIT' => '+OK byebye',
|
|
||||||
'welcome' => join("",
|
'welcome' => join("",
|
||||||
' _ _ ____ _ '."\r\n",
|
' _ _ ____ _ '."\r\n",
|
||||||
' ___| | | | _ \| | '."\r\n",
|
' ___| | | | _ \| | '."\r\n",
|
||||||
@ -1310,6 +1310,12 @@ sub DELE_pop3 {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub QUIT_pop3 {
|
||||||
|
sendcontrol "+OK byebye\r\n";
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
################
|
################
|
||||||
################ FTP commands
|
################ FTP commands
|
||||||
################
|
################
|
||||||
|
Loading…
Reference in New Issue
Block a user