[Web] Add more sieve presets

master
andryyy 2019-12-27 22:03:06 +01:00
parent a89df381f8
commit d468ecfa65
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
8 changed files with 60 additions and 7 deletions

View File

@ -1,7 +1,10 @@
headline: lang.sieve_preset_1 headline: lang.sieve_preset_1
content: | content: |
if header :contains "x-attached" require ["reject","body","regex"];
[".exe",".bat",".js",".com",".cmd",".ini",".dll",".bas",".cpl",".drv",".inf",".sys",".pif",".doc",".docx"] { if anyof (body :raw :regex ["filename=.*\.doc","filename=.*\.exe","filename=.*\.moo"]) {
discard; reject text:
stop; doc, exe and moo are dangerous file extensions.
Why would you do that? I am a sad cow.
.
;
} }

View File

@ -0,0 +1,3 @@
headline: lang.sieve_preset_3
content: |
discard; stop;

View File

@ -0,0 +1,4 @@
headline: lang.sieve_preset_4
content: |
require "fileinto";
fileinto "INBOX"; stop;

View File

@ -0,0 +1,16 @@
headline: lang.sieve_preset_5
content: |
require "vacation-seconds";
if true
{
# Only send once a day:
# vacation :seconds 86400 text:
# Only send once every 300 seconds:
# vacation :seconds 300 text:
# Else:
vacation text:
I am on holidays, yay!
Mail me later, alligator.
.
;
}

View File

@ -0,0 +1,10 @@
headline: lang.sieve_preset_6
content: |
require ["reject"];
# Rejects are sent from postmaster@mailcow_hostname, make sure DMARC/SPF are fine
# You should prefer rejects via mailcow blacklists
reject text:
I am not taking mail from you, and I don't
want your birdseed, either!
.
;

View File

@ -0,0 +1,7 @@
headline: lang.sieve_preset_7
content: |
redirect "other-address@domain.tld";
# Either keep after redirecting:
# keep;
# Or redirect and drop:
discard; stop;

View File

@ -673,7 +673,12 @@
"insert_preset": "Beispiel \"%s\" laden", "insert_preset": "Beispiel \"%s\" laden",
"sieve_preset_header": "Beispielinhalte zur Einsicht stehen nachstehend bereit. Siehe auch <a href=\"https://de.wikipedia.org/wiki/Sieve\" target=\"_blank\">Wikipedia</a>.", "sieve_preset_header": "Beispielinhalte zur Einsicht stehen nachstehend bereit. Siehe auch <a href=\"https://de.wikipedia.org/wiki/Sieve\" target=\"_blank\">Wikipedia</a>.",
"sieve_preset_1": "E-Mails mit potenziell gefährlichen Dateitypen abweisen", "sieve_preset_1": "E-Mails mit potenziell gefährlichen Dateitypen abweisen",
"sieve_preset_2": "E-Mail eines bestimmten Absenders immer als gelesen markieren" "sieve_preset_2": "E-Mail eines bestimmten Absenders immer als gelesen markieren",
"sieve_preset_3": "Lautlos löschen, weitere Ausführung von Filtern verhindern",
"sieve_preset_4": "Nach INBOX einsortieren und weitere Filterbearbeitung stoppen",
"sieve_preset_5": "Auto-Responder (Vacation, Urlaub)",
"sieve_preset_6": "E-Mails mit Nachricht abweisen",
"sieve_preset_7": "Weiterleiten und behalten oder verwerfen"
}, },
"edit": { "edit": {
"generate": "generieren", "generate": "generieren",

View File

@ -672,7 +672,12 @@
"insert_preset": "Insert example preset \"%s\"", "insert_preset": "Insert example preset \"%s\"",
"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>.",
"sieve_preset_1": "Discard mail with probable dangerous file types", "sieve_preset_1": "Discard mail with probable dangerous file types",
"sieve_preset_2": "Always mark the e-mail of a specific sender as seen" "sieve_preset_2": "Always mark the e-mail of a specific sender as seen",
"sieve_preset_3": "Discard silently, stop all further sieve processing",
"sieve_preset_4": "File into INBOX, skip further processing by sieve filters",
"sieve_preset_5": "Auto responder (vacation)",
"sieve_preset_6": "Reject mail with reponse",
"sieve_preset_7": "Redirect and keep/drop"
}, },
"edit": { "edit": {
"generate": "generate", "generate": "generate",