-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 8 Oct 2009, michel@casa.co.cu wrote:
if header :contains "X-Bogosity" "Spam" { fileinto "Spam"; stop; }
server log ################ mailserver deliver(michel@casa.co.cu): msgid=1255000600.4acdca18a3940@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----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBSs3fJ3WSIuGy1ktrAQJWqwgAgtVXTFfn4ccrLpsoPz1oBpMsxnw6QW7p L4Td3B6qdT/ufFk0vPlcogs288MbFocQkcGJq0yrX2uiAGghjeE039J3BUO84YDx AtzEQJPj/3RVPr34zBM+BlOPhHC9pQS+T06cegCgoWZlLFkh3A7Mh5ViedisX3HU B/E/bSEPWRg5KMyo0ykum6tFlXOXl1N/uRodwFbbugwWg9309pJEyL/MYxAcRllm HKTNj1ixP9tlZesPgupExiJeBsR9hC9/Pho8Q7G3ctl/8Th2J5CGxS+vucnQWZaH FXFeeDogjLcvbpvDSIecZeTeEt+lwuHa1vnMJWM7JVuSFi2/9xurlQ== =CToH -----END PGP SIGNATURE-----