diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-09-08 08:35:38 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-09-08 08:44:49 +0100 |
commit | 18c595fde23ef7f7ca1c4c9dc733e635b80424aa (patch) | |
tree | d608957ea2b45fcbf393df123f60de85b18aa2ba /tests | |
parent | 56abdd07e7eef6dd0c075bc765aa8fb608427194 (diff) |
ftpserver.pl: Moved POP3 QUIT handler into own function
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/ftpserver.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl index ded0b044c..536ea06ab 100755 --- a/tests/ftpserver.pl +++ b/tests/ftpserver.pl @@ -560,12 +560,12 @@ sub protocolsetup { 'CAPA' => \&CAPA_pop3, 'DELE' => \&DELE_pop3, 'LIST' => \&LIST_pop3, + 'QUIT' => \&QUIT_pop3, 'RETR' => \&RETR_pop3, ); %displaytext = ( 'USER' => '+OK We are happy you popped in!', 'PASS' => '+OK Access granted', - 'QUIT' => '+OK byebye', 'welcome' => join("", ' _ _ ____ _ '."\r\n", ' ___| | | | _ \| | '."\r\n", @@ -1310,6 +1310,12 @@ sub DELE_pop3 { return 0; } +sub QUIT_pop3 { + sendcontrol "+OK byebye\r\n"; + + return 0; +} + ################ ################ FTP commands ################ |