projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d60590
)
ftpserver.pl: Added support for POP3 DELE command
author
Steve Holme
<steve_holme@hotmail.com>
Sat, 7 Sep 2013 18:27:52 +0000
(19:27 +0100)
committer
unknown
<Steve Holme@steve.digital-frog.com>
Sat, 7 Sep 2013 18:31:46 +0000
(19:31 +0100)
tests/ftpserver.pl
patch
|
blob
|
history
diff --git
a/tests/ftpserver.pl
b/tests/ftpserver.pl
index f3c84942ab193970be29549eecc4cc8a4f507161..f9031bbaa0d9ee117d6153c22e07926f00adf633 100755
(executable)
--- a/
tests/ftpserver.pl
+++ b/
tests/ftpserver.pl
@@
-560,6
+560,7
@@
sub protocolsetup {
'AUTH' => \&AUTH_pop3,
'RETR' => \&RETR_pop3,
'LIST' => \&LIST_pop3,
+ 'DELE' => \&DELE_pop3,
);
%displaytext = (
'USER' => '+OK We are happy you popped in!',
@@
-1295,6
+1296,21
@@
my @pop3list=(
return 0;
}
+sub DELE_pop3 {
+ my ($msg) = @_;
+
+ logmsg "DELE_pop3 got $msg\n";
+
+ if ($msg eq "") {
+ sendcontrol "-ERR Protocol error\r\n";
+ }
+ else {
+ sendcontrol "+OK\r\n";
+ }
+
+ return 0;
+}
+
################
################ FTP commands
################