]> granicus.if.org Git - curl/commitdiff
SMTP tests: updated MAIL FROM use
authorDaniel Stenberg <daniel@haxx.se>
Wed, 22 Dec 2010 13:53:13 +0000 (14:53 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 22 Dec 2010 13:53:13 +0000 (14:53 +0100)
They were all wrong previously since none used the <brackets> they
should for MAIL FROM. Now libcurl adds them itself if the app doesn't so
they end up wrong less easy.

tests/data/test802
tests/data/test803
tests/data/test804
tests/data/test805
tests/data/test806
tests/data/test807

index 7027c802dee215a6794c993e0754f6c2e2cbfc30..12e46c9c3c944417c97727e1d4da28479b7c26ae 100644 (file)
@@ -35,7 +35,7 @@ smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 802@foo --mail-rcpt 802@foobar.example
 <verify>
 <protocol>
 EHLO user\r
-MAIL FROM:802@from\r
+MAIL FROM:<802@from>\r
 RCPT TO:<802@foo>\r
 RCPT TO:<802@foobar.example>\r
 DATA\r
index 24ff0d0011f17d8a08748b37bbe9c447e47a9abf..a00ed7ab6fbf0c3094f6f0e9b2102f1508d42c4b 100644 (file)
@@ -32,7 +32,7 @@ To: another
 body
 </stdin>
  <command>
-smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 803@foo --mail-from 803@from -T -
+smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 803@foo --mail-from '<803@from>' -T -
 </command>
 </client>
 
@@ -41,7 +41,7 @@ smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 803@foo --mail-from 803@from -T -
 <verify>
 <protocol>
 EHLO user\r
-MAIL FROM:803@from\r
+MAIL FROM:<803@from>\r
 RCPT TO:<803@foo>\r
 DATA\r
 QUIT\r
index 3d490c52b84e9c2270f1c4bc4c07899ccfb13f33..cfacfc64f2b35a6a4e5c070af3503be9a8daf47f 100644 (file)
@@ -42,7 +42,7 @@ smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 804@foo --mail-from 804@from -T -
 <protocol>
 EHLO user\r
 HELO user\r
-MAIL FROM:804@from\r
+MAIL FROM:<804@from>\r
 RCPT TO:<804@foo>\r
 DATA\r
 QUIT\r
index fba5124f3bc7bf4cea364a8077febcd126fe9609..4595221c9e0943cfc1a2bcfac376dfdf3b5cf9a9 100644 (file)
@@ -40,7 +40,7 @@ smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 805@foo --mail-from 805@from -u test:1
 <protocol>
 EHLO user\r
 AUTH PLAIN dGVzdAB0ZXN0ADEyMzQ=\r
-MAIL FROM:805@from\r
+MAIL FROM:<805@from>\r
 RCPT TO:<805@foo>\r
 DATA\r
 QUIT\r
index 8ece5dc8cab2eaf1d55fb963e6cdb67959818773..b71ac5cceef77a44dcfcbd2ce0f536086867abed 100644 (file)
@@ -41,7 +41,7 @@ smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 806@foo --mail-from 806@from -u test:1
 EHLO user\r
 AUTH LOGIN dGVzdA==\r
 MTIzNA==\r
-MAIL FROM:806@from\r
+MAIL FROM:<806@from>\r
 RCPT TO:<806@foo>\r
 DATA\r
 QUIT\r
index 6daa1d02bce71b7678e38cc03920e7c24b0a36fe..d171ffabc78cc20c5069644ea343a5cbb0d010e4 100644 (file)
@@ -45,7 +45,7 @@ smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 807@foo --mail-from 807@from -u tim:ta
 EHLO user\r
 AUTH CRAM-MD5\r
 dGltIGI5MTNhNjAyYzdlZGE3YTQ5NWI0ZTZlNzMzNGQzODkw\r
-MAIL FROM:807@from\r
+MAIL FROM:<807@from>\r
 RCPT TO:<807@foo>\r
 DATA\r
 QUIT\r