1 require [ "regex", "variables", "fileinto", "envelope", "mailbox",
2 "imap4flags", "include" ];
4 if address :is "from" "noreply+chat@canonical.com" {
5 fileinto :create "mattermost";
9 if address :is "from" "noreply+discourse@canonical.com" {
10 fileinto :create "discourse";
14 if address :is :domain "from" ["discourse.ubuntu.com", "forum.snapcraft.io"] {
15 fileinto :create "discourse";
19 if address :is "from" "jira@warthogs.atlassian.net" {
20 fileinto :create "jira";
24 if address :is :domain "from" "rt.canonical.com" {
25 fileinto :create "rt";
29 if address :matches :domain "from" ["launchpad.net", "*.launchpad.net"] {
30 fileinto :create "launchpad";
34 if address :is "from" "gitlab@salsa.debian.org" {
35 fileinto :create "salsa";
39 if address :is "from" "notifications@github.com" {
44 if allof (header :regex "list-id" "<([a-z_0-9-]+)[.@]",
45 not address :regex :localpart "from" "^(no)?reply")
47 set :lower "listname" "${1}";
48 fileinto :create "l.${listname}";