Move all directories per theme
This commit is contained in:
0
core/dovecot/sieve/after.sieve
Normal file
0
core/dovecot/sieve/after.sieve
Normal file
24
core/dovecot/sieve/before.sieve
Normal file
24
core/dovecot/sieve/before.sieve
Normal file
@@ -0,0 +1,24 @@
|
||||
require "variables";
|
||||
require "vacation";
|
||||
require "fileinto";
|
||||
require "envelope";
|
||||
require "mailbox";
|
||||
require "imap4flags";
|
||||
require "regex";
|
||||
require "relational";
|
||||
require "comparator-i;ascii-numeric";
|
||||
require "vnd.dovecot.extdata";
|
||||
require "vnd.dovecot.execute";
|
||||
require "spamtestplus";
|
||||
|
||||
if allof (string :is "${extdata.spam_enabled}" "1",
|
||||
spamtest :percent :value "gt" :comparator "i;ascii-numeric" "${extdata.spam_threshold}")
|
||||
{
|
||||
setflag "\\seen";
|
||||
fileinto :create "Junk";
|
||||
stop;
|
||||
}
|
||||
|
||||
if string :is "${extdata.reply_enabled}" "1" {
|
||||
vacation :days 1 :subject "${extdata.reply_subject}" "${extdata.reply_body}";
|
||||
}
|
||||
3
core/dovecot/sieve/bin/mailtrain
Executable file
3
core/dovecot/sieve/bin/mailtrain
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
rspamc -h antispam:11334 -P mailu "learn_$1" /dev/stdin <&0
|
||||
0
core/dovecot/sieve/default.sieve
Normal file
0
core/dovecot/sieve/default.sieve
Normal file
3
core/dovecot/sieve/report-ham.sieve
Normal file
3
core/dovecot/sieve/report-ham.sieve
Normal file
@@ -0,0 +1,3 @@
|
||||
require "vnd.dovecot.execute";
|
||||
|
||||
execute :pipe "mailtrain" "ham";
|
||||
3
core/dovecot/sieve/report-spam.sieve
Normal file
3
core/dovecot/sieve/report-spam.sieve
Normal file
@@ -0,0 +1,3 @@
|
||||
require "vnd.dovecot.execute";
|
||||
|
||||
execute :pipe "mailtrain" "spam";
|
||||
Reference in New Issue
Block a user