[Dovecot] Move messages marked as Spam

Michel Bulgado michel at casa.co.cu
Tue Oct 6 21:00:44 EEST 2009


Hello 

I have implemented recently in my work bogofilter utility to mark
messages as Spam or Ham, currently is working perfectly, but I want to
move those messages marked as spam to a folder called spam. 

I installed dovecot-sieve with the intention of using fileinto to
accomplish this. 

my question is: where I put this:

require "fileinto";

if header :contains "X-Bogosity" "Spam" {
        fileinto "Spam";        
}

so that all messages that come to my users go into the spam folder? 



and how i handle messages that are marked as "Unsure"

X-Bogosity: Unsure



Thanks
Michel





More information about the dovecot mailing list