[Dovecot] New global post-filter: drop duplicates as received within 60 minutes

master
andryyy 2020-10-11 10:34:15 +02:00
parent efd69f1c1c
commit ce77d87c8d
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
2 changed files with 15 additions and 0 deletions

View File

@ -6,6 +6,7 @@ require "mailbox";
require "variables";
require "subaddress";
require "envelope";
require "duplicate";
if header :contains "X-Spam-Flag" "YES" {
fileinto "Junk";
@ -22,3 +23,8 @@ if allof (
fileinto :create "INBOX/${tag}";
}
}
if duplicate {
discard;
stop;
}

View File

@ -0,0 +1,9 @@
<?xml version='1.0' standalone='yes'?>
<extension name="duplicate">
<test name="duplicate">
</test>
</extension>