1 # Sieve tests with actual delivery
10 Filter: require "fileinto"; fileinto "userx-extra";
14 Filter: redirect "redirected@test.ex";
17 exim -odi restrict-userx
18 Filter: require "fileinto"; fileinto "userx-extra";
21 # Syntax error in Sieve filter (missing "require")
22 exim -odi restrict-userx
23 Filter: fileinto "userx-extra";
26 # Test stop inside a block
28 Filter: if true { stop; fileinto "inbox.never"; }
31 # This should fileinto inbox.JUNK (99 equal 99):
35 require["fileinto","comparator-i;ascii-numeric"];
36 if header :comparator "i;ascii-numeric" "X-Sieve" "99" {
37 fileinto "inbox.JUNK";
42 # This should not fileinto inbox.JUNK (98 not equal 99):
46 require["fileinto","comparator-i;ascii-numeric"];
47 if header :comparator "i;ascii-numeric" "X-Sieve" "98" {
48 fileinto "inbox.JUNK";
53 # This should fileinto inbox.JUNK (99-suffix equal 99):
57 require["fileinto","comparator-i;ascii-numeric"];
58 if header :comparator "i;ascii-numeric" "X-Sieve" "99" {
59 fileinto "inbox.JUNK";
64 # This should fileinto inbox.JUNK (non-numeric equal non-numeric):
68 require["fileinto","comparator-i;ascii-numeric"];
69 if header :comparator "i;ascii-numeric" "X-Sieve" "-99" {
70 fileinto "inbox.JUNK";
75 # This should fileinto inbox.JUNK (non-numeric equal non-numeric):
79 require["fileinto","comparator-i;ascii-numeric"];
80 if header :comparator "i;ascii-numeric" "X-Sieve" "-98" {
81 fileinto "inbox.JUNK";
86 # This is a simple test of "vacation"
87 exim -odi -f someone@test.ex userx13
91 vacation "I am gone. Not here.";
95 exim -odi -f someone@test.ex userx14-suffix userx14-suffix2
97 require ["envelope","fileinto"];
98 if envelope :matches :localpart "to" "*-suffix" {
99 fileinto "userx-sawsuffix";