diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-09-08 16:41:12 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-09-08 16:45:52 +0100 |
commit | c9617d9f9303b8cb77d313716d7cdfa8ccea8d60 (patch) | |
tree | 025e33ba94fa3ef1340d7bd225d0056fe1852ee1 | |
parent | f8986a2b34368e081efa4982f8276551e13a4d29 (diff) |
ftpserver.pl: Added support for POP3 NOOP command
-rwxr-xr-x | tests/ftpserver.pl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl index 9b89e91ef..7fac030f0 100755 --- a/tests/ftpserver.pl +++ b/tests/ftpserver.pl @@ -560,6 +560,7 @@ sub protocolsetup { 'CAPA' => \&CAPA_pop3, 'DELE' => \&DELE_pop3, 'LIST' => \&LIST_pop3, + 'NOOP' => \&NOOP_pop3, 'QUIT' => \&QUIT_pop3, 'RETR' => \&RETR_pop3, 'STAT' => \&STAT_pop3, @@ -1326,6 +1327,19 @@ sub STAT_pop3 { 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 { sendcontrol "+OK byebye\r\n"; |