summaryrefslogtreecommitdiff
path: root/test/scripts/0000-Basic/0100
blob: 7abf09143a2ee4722f87941e9792415eaa87f09e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# appendfile body escapes (including "from hack" and "SMTP dot" tests)
need_ipv4
#
exim -odi userx@test.ex
Test message
From the deep abyss
From
out of nowhere
Fromage please
from is case sensitive
From: is how headers start
****
exim -odi usery@test.ex
Test message
From the deep abyss
From
out of nowhere
Fromage please
from is case sensitive
From: is how headers start
****
write test-data 128x64
++++
From Bohemia's woods and fields
****
exim -odi userx@test.ex <test-data
****
write test-data 127x64 1x63
++++
From Bohemia's woods and fields
****
exim -odi userx@test.ex <test-data
****
exim -odi userz@test.ex
A message containing
. a line starting with a dot
.. and one starting with two dots
From should not be escaped as this is
going to be delivered using BSMTP.
****
exim -odi userw@test.ex
A message containing
. a line starting with a dot
.. and one starting with two dots
From should not be escaped as this is
going to be delivered using BSMTP,
via a filter.
****
server PORT_S
220 ESMTP
EHLO
250 OK
MAIL FROM:
250 Sender OK
RCPT TO:
250 Recipient OK
DATA
354 Send data
.
250 OK
QUIT
250 OK
****
exim -oi -odi userx@domain.com
.dotheader: This is perfectly legal

A message containing
. a line starting with a dot
.. and one starting with two dots
.
The previous one contains only a dot.
****
write test-data 127x64 1x62
++++
Frost isn't From.
****
exim -odi userx@test.ex <test-data
****
exim -odi userx@test.ex
Last line ending without a newline and with a partial match: 
:noeol:From
****
exim -odi filter-userx@test.ex
Test message
From the deep abyss
From
out of nowhere
Fromage please
from is case sensitive
From: is how headers start
****
exim -odi filter-userx@test.ex
Last line ending without a newline and with a partial match: 
:noeol:From
****
exim -odi userx@test.ex
Last line ending without a newline and being a single dot:
:noeol:.
****
exim -odi mmdf-userx@test.ex
Line consisting of four ^A characters

That should get escaped by adding a space.
****
exim -odi batch-userx@test.ex batch-userz@test.ex
A message containing
. a line starting with a dot
.. and one starting with two dots
From should be escaped as this is
going to be delivered using batch. The dots
shouldn't be escaped.
****
exim -odi userx@test.ex
Subject: From

From is the very first word of the message.
From starts the second line.
****
server PORT_S
220 ESMTP
EHLO
250 OK
MAIL FROM:
250 Sender OK
RCPT TO:
250 Recipient OK
DATA
354 Send data
.
250 OK
QUIT
250 OK
****
exim -oi -odi userx@filtered.com
.dotheader: This is perfectly legal

A message containing
. a line starting with a dot
.. and one starting with two dots
.
The previous one contains only a dot.
****