mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-05-21 06:51:52 +00:00
26 lines
1.0 KiB
Plaintext
26 lines
1.0 KiB
Plaintext
# Sieve Filter
|
|
# Erzeugt von Ingo (http://www.horde.org/ingo/) (30.09.2016, 16:02)
|
|
|
|
# Nested rules aren't supported and will be ignored (#5540)
|
|
|
|
require ["vacation", "regex"];
|
|
|
|
# Abwesenheit
|
|
if allof ( not exists ["list-help", "list-unsubscribe", "list-subscribe", "list-owner", "list-post", "list-archive", "list-id", "Mailing-List"],
|
|
not header :is "Precedence" ["list", "bulk", "junk"],
|
|
not header :matches "To" "Multiple recipients of*") {
|
|
if header :regex "Received" "^.*(2016) (\\(.*\\) )?..:..:.. (\\(.*\\) )?(\\+|\\-)....( \\(.*\\))?$" {
|
|
if header :regex "Received" "^.*(Oct) (\\(.*\\) )?.... (\\(.*\\) )?..:..:.. (\\(.*\\) )?(\\+|\\-)....( \\(.*\\))?$" {
|
|
if header :regex "Received" "^.*([0 ]4|[0 ]5|[0 ]6|[0 ]7) (\\(.*\\) )?... (\\(.*\\) )?.... (\\(.*\\) )?..:..:.. (\\(.*\\) )?(\\+|\\-)....( \\(.*\\))?$" {
|
|
vacation :days 7 :addresses "test@company.com" :subject "vacation" "blablabla";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
# Ausgeschlossene Adressen
|
|
if address :is ["From", "Sender", "Resent-From"] "noreply@example.org" {
|
|
discard;
|
|
stop;
|
|
}
|