summaryrefslogtreecommitdiff
path: root/shared/simtec.sieve
blob: bd0f5716b07d22d2e6ab9d5e510a2821d9b8ec76 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Backup of Simtec sieve rules for later.

## Simtec Lists ######################################################

if header :contains "List-Id" ["support.simtec.co.uk"] {
	fileinto "Simtec.support";
	stop;
}

if header :contains "List-Id" ["software-group.lists.simtec.co.uk"] {
	fileinto "Simtec.software-group";
	stop;
}

if header :contains "List-Id" ["linux.simtec.co.uk"] {
	fileinto "Simtec.linux";
	stop;
}

if header :contains "List-Id" ["code-review.lists.simtec.co.uk"] {
	fileinto "Simtec.code-review";
	stop;
}

if header :contains "List-Id" ["entropykey"] {
	fileinto "Simtec.EntropyKey.dev";
	stop;
}

## Simtec Customers Lists ##########################################

if header :contains "List-Id" ["datong-commod.lists.simtec.co.uk"] {
	fileinto "Simtec.Customers.datong-commod";
	stop;
}

if header :contains "List-Id" ["wolfson-simtec-dev.lists.simtec.co.uk"] {
	fileinto "Simtec.Customers.Wolfson";
	stop;
}

if header :contains "List-Id" ["ynic.lists.simtec.co.uk"] {
	fileinto "Simtec.Customers.ynic";
	stop;
}

if header :contains "List-Id" ["ynic-code-review.lists.simtec.co.uk"] {
	fileinto "Simtec.Customers.ynic.code-review";
	stop;
}

## Simtec filters ##################################################

if anyof (
	header :contains "To" ["ekey@simtec.co.uk"],
	header :contains "From" ["ekey@simtec.co.uk"],
	header :contains "Cc" ["ekey@simtec.co.uk"]
	) {
	fileinto "Simtec.EntropyKey";
	stop;
}

if allof (
	header :contains "To" ["root@"],
	header :contains "To" ["simtec"]
	) {
	fileinto "Simtec.Cron";
	stop;
}

if allof (
	header :contains "To" ["Cron"],
	header :contains "To" ["simtec"]
	) {
	fileinto "Simtec.Cron";
	stop;
}

if allof (
	header :contains "From" ["Cron"],
	header :contains "From" ["simtec"]
	) {
	fileinto "Simtec.Cron";
	stop;
}

if anyof (
	header :contains "To" ["sysadmin@simtec.co.uk"],
	header :contains "From" ["sysadmin@simtec.co.uk"],
	header :contains "Cc" ["sysadmin@simtec.co.uk"]
	) {
	fileinto "Simtec.Sysadmin";
	stop;
}