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:
158dfe2
)
ftpserver.pl: Moved SMTP MAIL handler into own function
author
Steve Holme
<steve_holme@hotmail.com>
Tue, 17 Sep 2013 20:06:49 +0000
(21:06 +0100)
committer
Steve Holme
<steve_holme@hotmail.com>
Tue, 17 Sep 2013 21:09:30 +0000
(22:09 +0100)
tests/ftpserver.pl
patch
|
blob
|
history
diff --git
a/tests/ftpserver.pl
b/tests/ftpserver.pl
index
0975a20
..
34f4825
100755
(executable)
--- a/
tests/ftpserver.pl
+++ b/
tests/ftpserver.pl
@@
-625,11
+625,11
@@
sub protocolsetup {
'DATA' => \&DATA_smtp,
'EHLO' => \&EHLO_smtp,
'HELO' => \&HELO_smtp,
+ 'MAIL' => \&MAIL_smtp,
'RCPT' => \&RCPT_smtp,
'QUIT' => \&QUIT_smtp,
);
%displaytext = (
- 'MAIL' => '200 Note taken',
'RCPT' => '200 Receivers accepted',
'welcome' => join("",
'220- _ _ ____ _ '."\r\n",
@@
-738,6
+738,12
@@
sub EHLO_smtp {
return 0;
}
+sub MAIL_smtp {
+ sendcontrol "200 Note taken\r\n";
+
+ return 0;
+}
+
sub DATA_smtp {
my $testno;