Initial commit.
This commit is contained in:
Executable
+1
@@ -0,0 +1 @@
|
||||
exec /usr/bin/rspamc -h 127.0.0.1:11334 learn_ham
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
exec /usr/bin/rspamc -h 127.0.0.1:11334 learn_spam
|
||||
@@ -0,0 +1,2 @@
|
||||
require ["vnd.dovecot.pipe", "copy", "imapsieve"];
|
||||
pipe :copy "rspamc" ["learn_ham"];
|
||||
@@ -0,0 +1,2 @@
|
||||
require ["vnd.dovecot.pipe", "copy", "imapsieve"];
|
||||
pipe :copy "rspamc" ["learn_spam"];
|
||||
@@ -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.
Reference in New Issue
Block a user