> On 23 May 2018, at 16.17, André Rodier <[email protected]> wrote: > > On 2018-05-23 15:11, @lbutlr wrote: >> How would I get the rule >> if header :contains "X-spam-flag" "YES" { >> fileinto "Junk"; >> } >> To apply to all users mail at delivery time? > > Use the default scripts, works well for me. > > https://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration#Visible_Default_Script > > The Dovecot wiki is really helpful, have a look on it ;-)
Actually in this case it's probably better to use sieve_before setting for the spam filter, as users are allowed to overwrite default sieve. Sami
