mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-04-04 03:01:05 +02:00
Sieve script update
This commit is contained in:
parent
70bea781d4
commit
f0e020a353
1 changed files with 9 additions and 7 deletions
|
@ -38,10 +38,12 @@ if allof (header :contains "from" "netdata")
|
||||||
#rule:[Lol]
|
#rule:[Lol]
|
||||||
if header :matches "X-Original-To" "*@malka.sh" {
|
if header :matches "X-Original-To" "*@malka.sh" {
|
||||||
set :lower "name" "${1}";
|
set :lower "name" "${1}";
|
||||||
}
|
|
||||||
|
|
||||||
if string :is "${name}" "" {
|
if string :is "${name}" "" {
|
||||||
fileinto "INBOX";
|
fileinto "INBOX";
|
||||||
|
}
|
||||||
|
elsif string :is "${name}" "julien" {
|
||||||
|
fileinto "INBOX";
|
||||||
} else {
|
} else {
|
||||||
fileinto :create "INBOX.${name}";
|
fileinto :create "INBOX.${name}";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue