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):
34 Filter: require["fileinto","comparator-i;ascii-numeric"];
35 if header :comparator "i;ascii-numeric" "X-Sieve" "99" {
36 fileinto "inbox.JUNK";
41 # This should not fileinto inbox.JUNK (98 not equal 99):
44 Filter: require["fileinto","comparator-i;ascii-numeric"];
45 if header :comparator "i;ascii-numeric" "X-Sieve" "98" {
46 fileinto "inbox.JUNK";
51 # This should fileinto inbox.JUNK (99-suffix equal 99):
54 Filter: require["fileinto","comparator-i;ascii-numeric"];
55 if header :comparator "i;ascii-numeric" "X-Sieve" "99" {
56 fileinto "inbox.JUNK";
61 # This should fileinto inbox.JUNK (non-numeric equal non-numeric):
64 Filter: require["fileinto","comparator-i;ascii-numeric"];
65 if header :comparator "i;ascii-numeric" "X-Sieve" "-99" {
66 fileinto "inbox.JUNK";
71 # This should fileinto inbox.JUNK (non-numeric equal non-numeric):
74 Filter: require["fileinto","comparator-i;ascii-numeric"];
75 if header :comparator "i;ascii-numeric" "X-Sieve" "-98" {
76 fileinto "inbox.JUNK";
81 # This is a simple test of "vacation"
82 exim -odi -f someone@test.ex userx
84 Filter: require ["vacation"];
85 vacation "I am gone. Not here.";
89 exim -odi -f someone@test.ex userx-suffix userx-suffix2
90 To: userx-suffix@test.ex
91 Filter: require ["envelope","fileinto"];
92 if envelope :matches :localpart "to" "*-suffix" {
93 fileinto "userx-sawsuffix";