1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

ftpserver.pl: Moved SMTP MAIL handler into own function

This commit is contained in:
Steve Holme 2013-09-17 21:06:49 +01:00
parent 158dfe2c5c
commit 96b68c57ce

View File

@ -625,11 +625,11 @@ sub protocolsetup {
'DATA' => \&DATA_smtp, 'DATA' => \&DATA_smtp,
'EHLO' => \&EHLO_smtp, 'EHLO' => \&EHLO_smtp,
'HELO' => \&HELO_smtp, 'HELO' => \&HELO_smtp,
'MAIL' => \&MAIL_smtp,
'RCPT' => \&RCPT_smtp, 'RCPT' => \&RCPT_smtp,
'QUIT' => \&QUIT_smtp, 'QUIT' => \&QUIT_smtp,
); );
%displaytext = ( %displaytext = (
'MAIL' => '200 Note taken',
'RCPT' => '200 Receivers accepted', 'RCPT' => '200 Receivers accepted',
'welcome' => join("", 'welcome' => join("",
'220- _ _ ____ _ '."\r\n", '220- _ _ ____ _ '."\r\n",
@ -738,6 +738,12 @@ sub EHLO_smtp {
return 0; return 0;
} }
sub MAIL_smtp {
sendcontrol "200 Note taken\r\n";
return 0;
}
sub DATA_smtp { sub DATA_smtp {
my $testno; my $testno;