Initial commit.

This commit is contained in:
2021-05-24 22:18:33 +03:00
commit e2954d55f4
3701 changed files with 330017 additions and 0 deletions

1
dovecot/sieve/learn-ham.sh Executable file
View File

@@ -0,0 +1 @@
exec /usr/bin/rspamc -h 127.0.0.1:11334 learn_ham

1
dovecot/sieve/learn-spam.sh Executable file
View File

@@ -0,0 +1 @@
exec /usr/bin/rspamc -h 127.0.0.1:11334 learn_spam

View File

@@ -0,0 +1,2 @@
require ["vnd.dovecot.pipe", "copy", "imapsieve"];
pipe :copy "rspamc" ["learn_ham"];

View File

@@ -0,0 +1,2 @@
require ["vnd.dovecot.pipe", "copy", "imapsieve"];
pipe :copy "rspamc" ["learn_spam"];

View 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;
}

Binary file not shown.