Additional Sieve test (missed files from previous commit).
[exim.git] / test / scripts / 0000-Basic / 0037
1 # filter tests
2 #
3 # Create a file that is accessible only to the Exim user
4 sudo rm -f DIR/test-private
5 touch DIR/test-private
6 sudo chown EXIMUSER:EXIMGROUP DIR/test-private
7 sudo chmod 0600 DIR/test-private
8 #
9 exim -bf DIR/aux-fixed/TESTNUM.f-1 </dev/null
10 ****
11 1
12 exim -bf DIR/aux-fixed/TESTNUM.f-2 </dev/null
13 ****
14 exim -bF DIR/aux-fixed/TESTNUM.f-3 </dev/null
15 ****
16 # Not personal
17 exim -bf DIR/aux-fixed/TESTNUM.f-4 </dev/null
18 ****
19 # Not personal
20 exim -bf DIR/aux-fixed/TESTNUM.f-4 -f anon@ymous
21 ****
22 # Personal
23 exim -bf DIR/aux-fixed/TESTNUM.f-4 -f anon@ymous
24 To: CALLER@test.ex
25 ****
26 # Not personal
27 exim -bf DIR/aux-fixed/TESTNUM.f-4 -f anon@ymous
28 To: X-CALLER@test.ex
29 ****
30 # Personal
31 exim -bf DIR/aux-fixed/TESTNUM.f-4 -f anon@ymous
32 To: CALLER@test.ex
33 Subject: north circular road
34 ****
35 # Not personal
36 exim -bf DIR/aux-fixed/TESTNUM.f-4 -f anon@ymous
37 To: userx@test.ex
38 Precedence: bulk
39 ****
40 # Not personal
41 exim -bf DIR/aux-fixed/TESTNUM.f-4 -f anon@ymous
42 To: userx@test.ex
43 Precedence: list
44 ****
45 # Not personal
46 exim -bf DIR/aux-fixed/TESTNUM.f-4 -f anon@ymous
47 To: userx@test.ex
48 Precedence: junk
49 ****
50 # Personal
51 exim -bf DIR/aux-fixed/TESTNUM.f-4 -f anon@ymous
52 To: abcdefgh@bzzzt.fix.no
53 Auto-Submitted: no
54 ****
55 # Not personal
56 exim -bf DIR/aux-fixed/TESTNUM.f-4 -f anon@ymous
57 To: userx@test.ex
58 Auto-Submitted: auto-replied
59 ****
60 # Not personal
61 exim -bf DIR/aux-fixed/TESTNUM.f-4 -f anon@ymous
62 To: userx@test.ex
63 List-Unsubscribe: xxxx
64 ****
65 # Not personal
66 exim -bf DIR/aux-fixed/TESTNUM.f-4 -f anon@ymous
67 To: userx@test.ex
68 From: abcd-request@some.domain
69 ****
70 # Not personal
71 exim -bf DIR/aux-fixed/TESTNUM.f-4 -f anon@ymous
72 To: userx@test.ex
73 From: owner-abcd@some.domain
74 ****
75 # Not personal
76 exim -bf DIR/aux-fixed/TESTNUM.f-4 -f anon@ymous
77 To: userx@test.ex
78 From: The list manager <majordomo@some.domain>
79 ****
80 # Personal
81 exim -bf DIR/aux-fixed/TESTNUM.f-4 -f anon@ymous
82 To: abc@xyz.com, Philip <CALLER@test.ex>, pqr@xyz.com
83 ****
84 exim -bf DIR/aux-fixed/TESTNUM.f-6 </dev/null
85 ****
86 exim -bf DIR/aux-var/TESTNUM.f-7 </dev/null
87 ****
88 exim -odi userx
89 Subject: Test 1
90 Remove-this: should get removed
91 ****
92 exim -odi userx abcd usery
93 Subject: should fail this
94
95 Fail this.
96 ****
97 exim -odi userx
98 Subject: should freeze this
99
100 Freeze this.
101 ****
102 exim -odi userx
103 Subject: reply to this
104
105 Reply to this.
106 ****
107 exim -odi filter-pipe
108 Subject: should give filter error (1)
109 ****
110 exim -odi filter-file
111 Subject: should give filter error (2)
112 ****
113 exim -odi filter-lookup
114 Subject: should give filter error (3)
115 ****
116 exim -odi filter-exists
117 Subject: should give filter error (4)
118 ****
119 exim -odi filter-readfile
120 Subject: should give filter error (5)
121 ****
122 exim -odi filter-run
123 Subject: should give filter error (6)
124 ****
125 exim -odi filter-vacation
126 Subject: should give rise to vacation message
127 ****
128 exim -bF DIR/aux-fixed/TESTNUM.f-5 </dev/null
129 ****
130 exim -qf
131 ****
132 exim -bpa
133 ****
134 exim -q
135 ****
136 exim -qff
137 ****
138 exim -odi userx
139 Subject: should freeze this
140
141 Freeze this (second message).
142 ****
143 exim -qqRff userx
144 ****
145 exim -odi readfile
146 Should fail ${readfile in filter.
147 ****
148 exim -bF DIR/aux-var/TESTNUM.F <DIR/aux-fixed/TESTNUM.msg
149 ****
150 exim -odi deliverfromfilter
151 Test deliver command in system filter
152 ****
153 exim -bF DIR/aux-var/TESTNUM.F
154 Test-headers: first one
155 From: x@y
156 Test-headers: another one
157 More-test-headers : yet another one
158 Subject: testing, testing
159 ****
160 exim -odi -d-all+route filter-userx
161 ****
162 exim -odi userx
163 Subject: should defer this
164
165 Defer this.
166 ****
167 # Vacation to a sender in never_mail
168 exim -odi -f never_mail@test.ex filter-vacation
169 Subject: should give rise to vacation message
170 ****
171 exim -odi filter-stat
172 Subject: should give filter error (7)
173 ****
174 no_msglog_check