added sieve rule to move spam to junk folder

This commit is contained in:
Spitfireap
2024-01-12 18:08:28 +01:00
committed by Antoine Nguyen
parent 5156ad0468
commit 38eae741bf
4 changed files with 24 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ plugin {
# Identical to sieve_before, only the specified scripts are executed after the
# user's script (only when keep is still in effect!). Multiple script file or
# directory paths can be specified by appending an increasing number.
#sieve_after =
{%dovecot_enabled}sieve_after = /etc/dovecot/conf.d/custom_after_sieve
#sieve_after2 =
#sieve_after2 = (etc...)

View File

@@ -0,0 +1,4 @@
require "fileinto";
if header :contains "X-Spam-Status" "Yes" {
fileinto "Junk";
}