summaryrefslogtreecommitdiff
path: root/test/scripts/0000-Basic/0567
blob: 5abd06fd6012c9b847c8f1c9499cbbcfabb29ec1 (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
# remove_header modifier in ACLs
exim -bs -odi
mail from:<mailok@test.ex>
rcpt to:<rcptok@test.ex>
rcpt to:<notok@test.ex>
data
cond: accept
X-Data-1: Line one
X-Data-2: Line two
X-Data-3: Line three
X-Data-4: Line four
X-Data-5: Line five
X-Not-1: Testing wildcard one
X-Not-2: Testing wildcard two
X-Rcpt-1: Line six
X-Rcpt-2: Line seven
X-Rcpt-3: Line eight
X-Rcpt-4: Line nine is really long, so long in fact that it wraps
	around to the next line.
X-Rcpt-5: Line ten
X-Mail-1: Line eleven
X-Mail-2: Line twelve
X-Mail-3: Line thirteen
X-Mail-4: Line fourteen is also really long, but it won't get
	removed by these ACL's.
X-Mail-5: Line fifteen
X-Predata-5: Line sixteen
X-Predata-4: Line seventeen
X-Predata-3: Line eighteen
X-Predata-2: Line nineteen
X-Predata-1: Line twenty
X-NotSMTP-1: Line twenty-one
X-NotSMTP-2: Line twenty-two
X-NotSMTP-3: Line twenty-three

Test message
.
quit
****
exim -odi rcptok@test.ex
Test non-SMTP message.  Make sure it doesn't blow up when a header
it wants to remove is not present.  This one also overrides the
fixup of adding a Date header because we specified to remove it!
Allow the admin to shoot himself in the foot if he really and
truly wants to.
****
exim -bs -odi -DCONNECTCOND="remove_header=CONNECT: won't do this"
****
no_msglog_check