From 1d8f08ef15b6cbcab728c117532ab0822c893c2f Mon Sep 17 00:00:00 2001 From: andryyy Date: Fri, 19 Jun 2020 22:06:20 +0200 Subject: [PATCH] [Web] Add sieve template, thanks to @Programmierus --- data/web/inc/presets/sieve/sieve_8.yml | 11 +++++++++++ data/web/lang/lang.en.json | 1 + 2 files changed, 12 insertions(+) create mode 100644 data/web/inc/presets/sieve/sieve_8.yml diff --git a/data/web/inc/presets/sieve/sieve_8.yml b/data/web/inc/presets/sieve/sieve_8.yml new file mode 100644 index 00000000..d73f5e0b --- /dev/null +++ b/data/web/inc/presets/sieve/sieve_8.yml @@ -0,0 +1,11 @@ +headline: lang.sieve_preset_8 +content: | + require "envelope"; + require "variables"; + if allof ( + envelope :all :matches "to" "*", + not header :contains "To" "${1}", + address :is "From" "${1}" + ) { + discard; + } \ No newline at end of file diff --git a/data/web/lang/lang.en.json b/data/web/lang/lang.en.json index de8ef321..ec1ecdbb 100644 --- a/data/web/lang/lang.en.json +++ b/data/web/lang/lang.en.json @@ -688,6 +688,7 @@ "sieve_preset_5": "Auto responder (vacation)", "sieve_preset_6": "Reject mail with reponse", "sieve_preset_7": "Redirect and keep/drop", + "sieve_preset_8": "Discard message sent to an alias address the sender is part of", "sieve_preset_header": "Please see the example presets below. For more details see Wikipedia.", "sogo_allow_admin_hint": "Administrative SOGo logins are only available for mailboxes with an existing SOGo profile. A user must have been logged in to SOGo at least once.", "sogo_visible": "Alias is visible in SOGo",