xref: /aosp_15_r20/external/curl/tests/data/test941 (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1<testcase>
2<info>
3<keywords>
4SMTP
5--crlf
6</keywords>
7</info>
8
9#
10# Server-side
11<reply>
12</reply>
13
14#
15# Client-side
16<client>
17<server>
18smtp
19</server>
20<name>
21SMTP with --crlf
22</name>
23<file name="%LOGDIR/upload%TESTNUMBER">
24From: different
25To: another
26
27email
28headers and body
29with Unix newlines
30meant to be
31converted
32with
33the
34--crlf option
35%repeat[650 x 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789%0a]%
36</file>
37<command>
38smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt [email protected] --mail-from [email protected] -T %LOGDIR/upload%TESTNUMBER --crlf
39</command>
40</client>
41
42#
43# Verify data after the test has been "shot"
44<verify>
45<protocol>
46EHLO %TESTNUMBER
47MAIL FROM:<[email protected]>
48RCPT TO:<[email protected]>
49DATA
50QUIT
51</protocol>
52<upload>
53From: different
54To: another
55
56email
57headers and body
58with Unix newlines
59meant to be
60converted
61with
62the
63--crlf option
64%repeat[650 x 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
65%0a]%
66.
67</upload>
68</verify>
69</testcase>
70