Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sieve - how to let users override global script
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
kutte128
Apprentice
Apprentice


Joined: 18 May 2004
Posts: 173

PostPosted: Mon Feb 16, 2015 11:49 am    Post subject: sieve - how to let users override global script Reply with quote

Hey,

i have a global spam script:
Code:
require "fileinto";
if header :contains "X-Spam-Flag" "YES" {
        fileinto "Spam";
}


that works nice

now i want to make sure, that users are able to override or extend that so that mails to a particular adress is sent to a special folder (user script) whatever X-Spam Flag is set to:
Code:
if anyof (header :contains "To" "special@domain.tld")
{
        fileinto "Special";
        stop;
}


It works also fine as long as X-Spam-Flag is No.
How can i implement this?

i tested with sieve_before and sieve_after, but i'm not able to override global.
Code:
        sieve = ~/sieve/.dovecot.sieve
        sieve_dir = ~/sieve
        sieve_before =/var/spool/sieve/global-spam.sieve

global-spam.sieve is compiled manually.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum