mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-29 07:10:51 +01:00
56 lines
1.1 KiB
Sieve
56 lines
1.1 KiB
Sieve
require ["variables", "fileinto", "envelope", "subaddress", "mailbox"];
|
|
|
|
# rule:[FRnOG]
|
|
if allof (header :contains "subject" "[FRnOG]")
|
|
{
|
|
fileinto "INBOX.frnog";
|
|
stop;
|
|
}
|
|
# rule:[dn42]
|
|
if allof (header :contains "subject" "[dn42]")
|
|
{
|
|
fileinto "INBOX.dn42";
|
|
stop;
|
|
}
|
|
# rule:[Lobsters]
|
|
if allof (header :is "to" "lobsters-hQ3nfqM88Q@lobste.rs")
|
|
{
|
|
fileinto "INBOX.lobsters";
|
|
stop;
|
|
}
|
|
# rule:[Fosdem]
|
|
if allof (header :contains "subject" "[devroom-managers]")
|
|
{
|
|
fileinto "INBOX.fosdem";
|
|
stop;
|
|
}
|
|
# rule:[Promox]
|
|
if allof (header :contains "subject" "[pve-devel]")
|
|
{
|
|
fileinto "INBOX.proxmox";
|
|
stop;
|
|
}
|
|
# rule:[Github]
|
|
if allof (header :contains "from" "notifications@github.com")
|
|
{
|
|
fileinto "INBOX.github";
|
|
stop;
|
|
}
|
|
# rule:[Netdata]
|
|
if allof (header :contains "from" "netdata")
|
|
{
|
|
fileinto "INBOX.netdata";
|
|
stop;
|
|
}
|
|
#rule:[Lol]
|
|
if header :matches "X-Original-To" "*@malka.sh" {
|
|
set :lower "name" "${1}";
|
|
if string :is "${name}" "" {
|
|
fileinto "INBOX";
|
|
}
|
|
elsif string :is "${name}" "julien" {
|
|
fileinto "INBOX";
|
|
} else {
|
|
fileinto :create "INBOX.${name}";
|
|
}
|
|
}
|