Commit | Line | Data |
---|---|---|
ba6e420e AB |
1 | require [ "regex", "variables", "fileinto", "envelope", "mailbox", |
2 | "imap4flags", "include" ]; | |
3 | ||
4 | if address :is "from" "noreply+chat@canonical.com" { | |
5 | fileinto :create "mattermost"; | |
6 | stop; | |
7 | } | |
8 | ||
9 | if address :is "from" "noreply+discourse@canonical.com" { | |
10 | fileinto :create "discourse"; | |
11 | stop; | |
12 | } | |
13 | ||
14 | if address :is :domain "from" ["discourse.ubuntu.com", "forum.snapcraft.io"] { | |
15 | fileinto :create "discourse"; | |
16 | stop; | |
17 | } | |
18 | ||
19 | if address :is "from" "jira@warthogs.atlassian.net" { | |
20 | fileinto :create "jira"; | |
21 | stop; | |
22 | } | |
23 | ||
24 | if address :is :domain "from" "rt.canonical.com" { | |
25 | fileinto :create "rt"; | |
26 | stop; | |
27 | } | |
28 | ||
29 | if address :matches :domain "from" ["launchpad.net", "*.launchpad.net"] { | |
30 | fileinto :create "launchpad"; | |
31 | stop; | |
32 | } | |
33 | ||
34 | if address :is "from" "gitlab@salsa.debian.org" { | |
35 | fileinto :create "salsa"; | |
36 | stop; | |
37 | } | |
38 | ||
1c7519c1 AB |
39 | if address :is "from" "bugzilla-daemon@mozilla.org" { |
40 | fileinto :create "bugzilla"; | |
41 | stop; | |
42 | } | |
43 | ||
44 | if address :is "to" "ftp-release-notifications@gnome.org" { | |
45 | fileinto :create "gnome-releases"; | |
46 | stop; | |
47 | } | |
48 | ||
ba6e420e AB |
49 | if address :is "from" "notifications@github.com" { |
50 | keep; | |
51 | stop; | |
52 | } | |
53 | ||
75984354 AB |
54 | if allof (header :regex "list-id" "<([a-z_0-9-]+)[.@]", |
55 | not address :regex :localpart "from" "^(no)?reply") | |
56 | { | |
ba6e420e AB |
57 | set :lower "listname" "${1}"; |
58 | fileinto :create "l.${listname}"; | |
59 | stop; | |
60 | } |