diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-09-17 21:06:49 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-09-17 22:09:30 +0100 |
commit | 96b68c57ce2bfc6b6a001441ee5a673e0c70c06d (patch) | |
tree | 19800dbd6f8d4b8d574db54e33ee2186d389ea4e /tests | |
parent | 158dfe2c5c9e45faa1364c21782b0fd693d32354 (diff) |
ftpserver.pl: Moved SMTP MAIL 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 0975a20dd..34f482542 100755 --- 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; |