+ add api for presets

+ add yml-files for preset-definition
This commit is contained in:
tinect
2019-11-14 20:23:58 +01:00
parent 3453207301
commit 943b7c6bb2
10 changed files with 1271 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
headline: lang.rsettings_preset_1
content: |
priority = 10;
authenticated = yes;
apply "default" {
symbols_enabled = ["DKIM_SIGNED", "RATELIMITED", "RATELIMIT_UPDATE", "RATELIMIT_CHECK", "DYN_RL_CHECK", "HISTORY_SAVE", "MILTER_HEADERS", "ARC_SIGNED"];
}

View File

@@ -0,0 +1,5 @@
headline: lang.rsettings_preset_2
content: |
priority = 10;
rcpt = "/postmaster@.*/";
want_spam = yes;

View File

@@ -0,0 +1,7 @@
headline: lang.sieve_preset_1
content: |
if header :contains "x-attached"
[".exe",".bat",".js",".com",".cmd",".ini",".dll",".bas",".cpl",".drv",".inf",".sys",".pif",".doc",".docx"] {
discard;
stop;
}

View File

@@ -0,0 +1,7 @@
headline: lang.sieve_preset_2
content: |
require ["envelope", "imap4flags"];
if envelope "from" "mark@me-read.com"
{
setflag "\\seen";
}