String expansions: fix ${extract }, for the numeric/3-string case. Bug 1807
[exim.git] / test / scripts / 0000-Basic / 0100
CommitLineData
59371ea7
PH
1# appendfile body escapes (including "from hack" and "SMTP dot" tests)
2need_ipv4
3#
4exim -odi userx@test.ex
5Test message
6From the deep abyss
7From
8out of nowhere
9Fromage please
10from is case sensitive
11From: is how headers start
12****
13exim -odi usery@test.ex
14Test message
15From the deep abyss
16From
17out of nowhere
18Fromage please
19from is case sensitive
20From: is how headers start
21****
22write test-data 128x64
23++++
24From Bohemia's woods and fields
25****
26exim -odi userx@test.ex <test-data
27****
28write test-data 127x64 1x63
29++++
30From Bohemia's woods and fields
31****
32exim -odi userx@test.ex <test-data
33****
34exim -odi userz@test.ex
35A message containing
36. a line starting with a dot
37.. and one starting with two dots
38From should not be escaped as this is
39going to be delivered using BSMTP.
40****
41exim -odi userw@test.ex
42A message containing
43. a line starting with a dot
44.. and one starting with two dots
45From should not be escaped as this is
46going to be delivered using BSMTP,
47via a filter.
48****
49server PORT_S
50220 ESMTP
51EHLO
52250 OK
53MAIL FROM:
54250 Sender OK
55RCPT TO:
56250 Recipient OK
57DATA
58354 Send data
59.
60250 OK
61QUIT
62250 OK
63****
64exim -oi -odi userx@domain.com
65.dotheader: This is perfectly legal
66
67A message containing
68. a line starting with a dot
69.. and one starting with two dots
70.
71The previous one contains only a dot.
72****
73write test-data 127x64 1x62
74++++
75Frost isn't From.
76****
77exim -odi userx@test.ex <test-data
78****
79exim -odi userx@test.ex
80Last line ending without a newline and with a partial match:
81From\NONL\
82****
83exim -odi filter-userx@test.ex
84Test message
85From the deep abyss
86From
87out of nowhere
88Fromage please
89from is case sensitive
90From: is how headers start
91****
92exim -odi filter-userx@test.ex
93Last line ending without a newline and with a partial match:
94From\NONL\
95****
96exim -odi userx@test.ex
97Last line ending without a newline and being a single dot:
98.\NONL\
99****
100exim -odi mmdf-userx@test.ex
101Line consisting of four ^A characters
102\ 1\ 1\ 1\ 1
103That should get escaped by adding a space.
104****
105exim -odi batch-userx@test.ex batch-userz@test.ex
106A message containing
107. a line starting with a dot
108.. and one starting with two dots
109From should be escaped as this is
110going to be delivered using batch. The dots
111shouldn't be escaped.
112****
113exim -odi userx@test.ex
114Subject: From
115
116From is the very first word of the message.
117From starts the second line.
118****
119server PORT_S
120220 ESMTP
121EHLO
122250 OK
123MAIL FROM:
124250 Sender OK
125RCPT TO:
126250 Recipient OK
127DATA
128354 Send data
129.
130250 OK
131QUIT
132250 OK
133****
134exim -oi -odi userx@filtered.com
135.dotheader: This is perfectly legal
136
137A message containing
138. a line starting with a dot
139.. and one starting with two dots
140.
141The previous one contains only a dot.
142****