Imported Upstream version 7.40.0
[platform/upstream/curl.git] / tests / data / test941
1 <testcase>
2 <info>
3 <keywords>
4 SMTP
5 --crlf
6 </keywords>
7 </info>
8
9 #
10 # Server-side
11 <reply>
12 </reply>
13
14 #
15 # Client-side
16 <client>
17 <server>
18 smtp
19 </server>
20  <name>
21 SMTP with --crlf
22  </name>
23 <file name="log/upload941">
24 From: different
25 To: another
26
27 email
28 headers and body
29 with unix newlines
30 meant to be
31 converted
32 with
33 the
34 --crlf option
35 </file>
36  <command>
37 smtp://%HOSTIP:%SMTPPORT/941 --mail-rcpt recipient@example.com --mail-from sender@example.com -T log/upload941 --crlf
38 </command>
39 </client>
40
41 #
42 # Verify data after the test has been "shot"
43 <verify>
44 <protocol>
45 EHLO 941\r
46 MAIL FROM:<sender@example.com>\r
47 RCPT TO:<recipient@example.com>\r
48 DATA\r
49 QUIT\r
50 </protocol>
51 <upload>
52 From: different\r
53 To: another\r
54 \r
55 email\r
56 headers and body\r
57 with unix newlines\r
58 meant to be\r
59 converted\r
60 with\r
61 the\r
62 --crlf option\r
63 .\r
64 </upload>
65 </verify>
66 </testcase>