summaryrefslogtreecommitdiff
path: root/test/scripts/0000-Basic/0101
blob: 12f73c0b8e5c8e914019e29912205f2d3370ef40 (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
# pipe 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
****
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.
****
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: 
From\NONL\
****
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: 
From\NONL\
****
exim -odi userx@test.ex
Last line ending without a newline and being a single dot:
.\NONL\
****
exim -odi mmdf-userx@test.ex
Line consisting of four ^A characters

That should get escaped by adding a space.
****
exim -odi userx@test.ex
Subject: From

From is the very first word of the message.
From starts the second line.