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

tests: Corrected the SMTP tests to be RFC2821 compliant

The emails that are sent to the server during these tests were
incorrectly formatted as they contained one or more LF terminated lines
rather than being CRLF terminated as per Section 2.3.7 of RFC-2821.

This wasn't a problem for the test suite as the <stdin> data matched the
<upload> data but anyone using these tests as reference would be sending
incorrect data to a server.
This commit is contained in:
Steve Holme 2013-04-28 16:12:40 +01:00
parent 9ea5145952
commit f317ffb7bb
9 changed files with 44 additions and 44 deletions

View File

@ -20,10 +20,10 @@ smtp
SMTP
</name>
<stdin>
From: different
To: another
body
From: different
To: another
body
</stdin>
<command>
smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 900@foo --mail-rcpt 900@foobar.example --mail-from 900@from -T -
@ -42,10 +42,10 @@ DATA
QUIT
</protocol>
<upload>
From: different
To: another
body
From: different
To: another
body
.
</upload>

View File

@ -20,16 +20,16 @@ smtp
SMTP with CRLF-dot-CRLF in data
</name>
<stdin>
From: different
To: another
From: different
To: another
.
.
.
body
body
</stdin>
<command>
smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 901@foo --mail-from '<901@from>' -T -
@ -47,16 +47,16 @@ DATA
QUIT
</protocol>
<upload>
From: different
To: another
From: different
To: another
..
..
..
body
body
.
</upload>

View File

@ -26,10 +26,10 @@ smtp
RFC821-only SMTP server (EHLO not supported)
</name>
<stdin>
From: different
To: another
body
From: different
To: another
body
</stdin>
<command>
smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 902@foo --mail-from 902@from -T -
@ -48,10 +48,10 @@ DATA
QUIT
</protocol>
<upload>
From: different
To: another
body
From: different
To: another
body
.
</upload>

View File

@ -28,7 +28,7 @@ smtp
SMTP plain authentication
</name>
<stdin>
mail body
mail body
</stdin>
<command>
smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 903@foo --mail-from 903@from -u test:1234 -T -
@ -48,7 +48,7 @@ DATA
QUIT
</protocol>
<upload>
mail body
mail body
.
</upload>

View File

@ -28,7 +28,7 @@ smtp
SMTP login authentication
</name>
<stdin>
mail body
mail body
</stdin>
<command>
smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 904@foo --mail-from 904@from -u test:1234 -T -
@ -49,7 +49,7 @@ DATA
QUIT
</protocol>
<upload>
mail body
mail body
.
</upload>

View File

@ -31,7 +31,7 @@ crypto
SMTP CRAM-MD5 authentication
</name>
<stdin>
mail body
mail body
</stdin>
<command>
smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 905@foo --mail-from 905@from -u tim:tanstaaftanstaaf -T -
@ -51,7 +51,7 @@ DATA
QUIT
</protocol>
<upload>
mail body
mail body
.
</upload>

View File

@ -20,10 +20,10 @@ smtp
SMTP without --mail-from
</name>
<stdin>
From: different
To: another
body
From: different
To: another
body
</stdin>
<command>
smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 906@foo -T -
@ -41,10 +41,10 @@ DATA
QUIT
</protocol>
<upload>
From: different
To: another
body
From: different
To: another
body
.
</upload>

View File

@ -27,7 +27,7 @@ smtp
SMTP plain authentication with initial response
</name>
<stdin>
mail body
mail body
</stdin>
<command>
smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 907@foo --mail-from 907@from -u test:1234 --sasl-ir -T -
@ -46,7 +46,7 @@ DATA
QUIT
</protocol>
<upload>
mail body
mail body
.
</upload>

View File

@ -27,7 +27,7 @@ smtp
SMTP login authentication with initial response
</name>
<stdin>
mail body
mail body
</stdin>
<command>
smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 908@foo --mail-from 908@from -u test:1234 --sasl-ir -T -
@ -47,7 +47,7 @@ DATA
QUIT
</protocol>
<upload>
mail body
mail body
.
</upload>