Testsuite: fix munge for mailq
[exim.git] / test / scripts / 0000-Basic / 0567
1 # remove_header modifier in ACLs
2 exim -bs -odi
3 helo test
4 mail from:<mailok@test.ex>
5 rcpt to:<rcptok@test.ex>
6 rcpt to:<notok@test.ex>
7 data
8 cond: accept
9 X-Data-1: Line one
10 X-Data-2: Line two
11 X-Data-3: Line three
12 X-Data-4: Line four
13 X-Data-5: Line five
14 X-Not-1: Testing wildcard one
15 X-Not-2: Testing wildcard two
16 X-Rcpt-1: Line six
17 X-Rcpt-2: Line seven
18 X-Rcpt-3: Line eight
19 X-Rcpt-4: Line nine is really long, so long in fact that it wraps
20         around to the next line.
21 X-Rcpt-5: Line ten
22 X-Mail-1: Line eleven
23 X-Mail-2: Line twelve
24 X-Mail-3: Line thirteen
25 X-Mail-4: Line fourteen is also really long, but it won't get
26         removed by these ACL's.
27 X-Mail-5: Line fifteen
28 X-Predata-5: Line sixteen
29 X-Predata-4: Line seventeen
30 X-Predata-3: Line eighteen
31 X-Predata-2: Line nineteen
32 X-Predata-1: Line twenty
33 X-NotSMTP-1: Line twenty-one
34 X-NotSMTP-2: Line twenty-two
35 X-NotSMTP-3: Line twenty-three
36 Authentication-Results: remove.org; foo bar
37 Authentication-Results: keep.org; baz barf
38 authentication-Results : REMOVE.ORG;
39         foo bar multiline
40 Authentication-Results: keep.org;
41         multiline
42
43 Test message
44 .
45 quit
46 ****
47 exim -odi rcptok@test.ex
48 Test non-SMTP message.  Make sure it doesn't blow up when a header
49 it wants to remove is not present.  This one also overrides the
50 fixup of adding a Date header because we specified to remove it!
51 Allow the admin to shoot himself in the foot if he really and
52 truly wants to.
53 ****
54 exim -bs -odi -DCONNECTCOND="remove_header=CONNECT: won't do this"
55 ****
56 no_msglog_check