Browse Source

[Web] Add sieve template, thanks to @Programmierus

andryyy 5 năm trước cách đây
mục cha
commit
1d8f08ef15

+ 11 - 0
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;
+  }

+ 1 - 0
data/web/lang/lang.en.json

@@ -688,6 +688,7 @@
         "sieve_preset_5": "Auto responder (vacation)",
         "sieve_preset_5": "Auto responder (vacation)",
         "sieve_preset_6": "Reject mail with reponse",
         "sieve_preset_6": "Reject mail with reponse",
         "sieve_preset_7": "Redirect and keep/drop",
         "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 <a href=\"https://en.wikipedia.org/wiki/Sieve_(mail_filtering_language)\" target=\"_blank\">Wikipedia</a>.",
         "sieve_preset_header": "Please see the example presets below. For more details see <a href=\"https://en.wikipedia.org/wiki/Sieve_(mail_filtering_language)\" target=\"_blank\">Wikipedia</a>.",
         "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_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",
         "sogo_visible": "Alias is visible in SOGo",