Doesn't 'keep' imply 'stop'? What if your users want the email in a different
folder that the INBOX?
Leave the 'else' clause off.
Bill
On 5/17/2017 4:07 PM, dove...@pallissard.net wrote:
But what I would need is execute a global sieve_before for all users to
apply some spam selection rules. Did anybody easily achieved it?
Is this what you are looking for? This is how I enforce spam rules prior to
users' custom scripts.
#in dovecot configuration
plugin {
sieve_before = /var/lib/dovecot/sieve/global/default.sieve
}
#In /var/lib/dovecot/sieve/global/default.sieve
require ["fileinto"];
if header :contains "X-Spam-Flag" "YES" {
fileinto "Spam";
stop;
} else {
keep;
}