Re: [Exim] Exim4 and SpamAssassin

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Sander Smeenk
Ημερομηνία:  
Προς: exim-users
Καινούρια Θέματα: [Exim] redirect_router, [Exim] redirect_router
Αντικείμενο: Re: [Exim] Exim4 and SpamAssassin
Quoting BlackHawk (black.hawk@???):

> if
>     $h_X-Spam-Status: contains "Yes"


This is too general. This means if ANYWHERE in the X-Spam-Status header
the word 'Yes' is found, it will match. Sometimes the Spam-Status is No,
but other words in the header contain Yes so it will cause false
positives.

I use this myself:

| if $h_X-Spam-Status: matches "^Yes"
| then
|     save Maildir/.stuff.spam/
|     finish
| endif


With this, you specifically look for 'Yes' at the beginning of the
contents of the X-Spam-Status header.

Sander.
--
| 1 1 was a racehorse, 2 2 was 1 2, 1 1 1 1 race 1 day, 2 2 1 1 2
| 1024D/08CEC94D - 34B3 3314 B146 E13C 70C8 9BDB D463 7E41 08CE C94D