Initial commit.
This commit is contained in:
1
dovecot/sieve/learn-ham.sh
Executable file
1
dovecot/sieve/learn-ham.sh
Executable file
@@ -0,0 +1 @@
|
||||
exec /usr/bin/rspamc -h 127.0.0.1:11334 learn_ham
|
||||
1
dovecot/sieve/learn-spam.sh
Executable file
1
dovecot/sieve/learn-spam.sh
Executable file
@@ -0,0 +1 @@
|
||||
exec /usr/bin/rspamc -h 127.0.0.1:11334 learn_spam
|
||||
2
dovecot/sieve/report-ham.sieve
Normal file
2
dovecot/sieve/report-ham.sieve
Normal file
@@ -0,0 +1,2 @@
|
||||
require ["vnd.dovecot.pipe", "copy", "imapsieve"];
|
||||
pipe :copy "rspamc" ["learn_ham"];
|
||||
2
dovecot/sieve/report-spam.sieve
Normal file
2
dovecot/sieve/report-spam.sieve
Normal file
@@ -0,0 +1,2 @@
|
||||
require ["vnd.dovecot.pipe", "copy", "imapsieve"];
|
||||
pipe :copy "rspamc" ["learn_spam"];
|
||||
11
dovecot/sieve/spam-global.sieve
Normal file
11
dovecot/sieve/spam-global.sieve
Normal file
@@ -0,0 +1,11 @@
|
||||
require ["fileinto","mailbox"];
|
||||
|
||||
if anyof(
|
||||
header :contains ["X-Spam-Flag"] "YES",
|
||||
header :contains ["X-Spam"] "Yes",
|
||||
header :contains ["Subject"] "*** SPAM ***"
|
||||
)
|
||||
{
|
||||
fileinto :create "Spam";
|
||||
stop;
|
||||
}
|
||||
BIN
dovecot/sieve/spam-global.svbin
Normal file
BIN
dovecot/sieve/spam-global.svbin
Normal file
Binary file not shown.
Reference in New Issue
Block a user