[Dovecot] Move messages marked as Spam

Michel Bulgado michel at casa.co.cu
Thu Oct 8 20:20:10 EEST 2009


On Thu, 2009-10-08 at 14:46 +0200, Steffen Kaiser wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Thu, 8 Oct 2009, michel at casa.co.cu wrote:
> 
> > if header :contains "X-Bogosity" "Spam" {
> >       fileinto "Spam";
> >       stop;
> > }
> >
> > server log
> > ################
> > mailserver deliver(michel at casa.co.cu): 
> > msgid=<1255000600.4acdca18a3940 at webmail.sld.cu>: saved mail to Spam
> >
> >
> > I dont know why move all messages , when in the script is only for messages 
> > marked as "Spam".
> >
> > I checked the message headers are right
> >
> > X-Bogosity:  	Ham, tests=bogofilter, spamicity=0.000000, version=1.2.1
>                                         ^^^^^
> 
> There is the word "Spam" you search for.
> 
> Look at RFC 3028 sec. 2.7.3, I think you need
> 
> if header :contains :comparator "i;octet"
> 
> to have a case-sensitive match.
> 
> I thought there is a ":begin" match type, but the RFC does not list it.
> 
> Or use
> 
> if header :contains "X-Bogosity" "Spam, " {
> 
> Note the ", " .
> 
> Bye,
> 
> - -- 
> Steffen Kaiser
> -----BEGIN PGP SIGNATURE-----


the problem was in the script. 

All messages were moved to the Spam folder because 
spamicity word. 

Thanks




More information about the dovecot mailing list