[Dovecot] New global post-filter: drop duplicates as received within 60 minutes
parent
efd69f1c1c
commit
ce77d87c8d
|
@ -6,6 +6,7 @@ require "mailbox";
|
||||||
require "variables";
|
require "variables";
|
||||||
require "subaddress";
|
require "subaddress";
|
||||||
require "envelope";
|
require "envelope";
|
||||||
|
require "duplicate";
|
||||||
|
|
||||||
if header :contains "X-Spam-Flag" "YES" {
|
if header :contains "X-Spam-Flag" "YES" {
|
||||||
fileinto "Junk";
|
fileinto "Junk";
|
||||||
|
@ -22,3 +23,8 @@ if allof (
|
||||||
fileinto :create "INBOX/${tag}";
|
fileinto :create "INBOX/${tag}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if duplicate {
|
||||||
|
discard;
|
||||||
|
stop;
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version='1.0' standalone='yes'?>
|
||||||
|
|
||||||
|
<extension name="duplicate">
|
||||||
|
|
||||||
|
<test name="duplicate">
|
||||||
|
|
||||||
|
</test>
|
||||||
|
|
||||||
|
</extension>
|
Loading…
Reference in New Issue