aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-12-21 08:33:47 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-12-21 08:33:47 +0000
commit83d34a246e14ba3341390878008251ce29da6aaf (patch)
tree0aadd77ca2e088f3659e6f22b01af685ddfae435
parent76b3c9d70f547b1698f0e63d8955ea16395c1157 (diff)
first small steps towards smtp
-rw-r--r--tests/ftpserver.pl10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl
index 4c25845d6..aff415f77 100644
--- a/tests/ftpserver.pl
+++ b/tests/ftpserver.pl
@@ -404,6 +404,14 @@ elsif($proto eq "imap") {
);
}
+elsif($proto eq "smtp") {
+ %displaytext = ('EHLO' => '230 We are happy you popped in!',
+ 'MAIL' => '200 Note taken',
+ 'RCPT' => '200 Receivers accepted',
+ 'QUIT' => '200 byebye',
+ 'DATA' => '200 hit me',
+ );
+}
sub close_dataconn {
@@ -1015,7 +1023,7 @@ sub customize {
my @welcome;
-if($proto eq "ftp") {
+if(($proto eq "ftp") || ($proto eq "smtp")) {
@welcome=(
'220- _ _ ____ _ '."\r\n",
'220- ___| | | | _ \| | '."\r\n",