On Thu, 2009-10-08 at 14:46 +0200, Steffen Kaiser wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Thu, 8 Oct 2009, mic...@casa.co.cu wrote: > > > if header :contains "X-Bogosity" "Spam" { > > fileinto "Spam"; > > stop; > > } > > > > server log > > ################ > > mailserver deliver(mic...@casa.co.cu): > > msgid=<1255000600.4acdca18a3...@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