[Exim] Filter changes ?

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Jan H. van Gils
Datum:  
To: exim-users
Betreff: [Exim] Filter changes ?
    Hi,

Thanks for reading.

I am using Exim3 and Spamassassin on a debian sarge system.
I experienced the following last friday.

I am using a system filter to filter spam and last friday all mail was treated as SPAM (Hi)

Here is my old Filter :
if
    $h_X-Spam-Status: contains "Yes"
        or
        "${if def:h_X-Spam-Flag {def}{undef}}" is "def"
then
    save /var/junk/spam/ 0660
    logfile /var/log/exim/spamlog
    logwrite "$tod_log \n\
              From: $h_From: \n\
              Subject: $h_Subject: \n\
              X-Spam-Status: $h_X-Spam-Status: \n\
              X-Spam-Flag: $h_X-Spam-Flag: \n\
              Sender: $sender_address"
    finish
endif


Here is my new Filter :

if
    $h_X-Spam-Status: contains "Yes,"
        or
        "${if def:h_X-Spam-Flag {def}{undef}}" is "def"
then
    save /var/junk/spam/ 0660
    logfile /var/log/exim/spamlog
    logwrite "$tod_log \n\
              From: $h_From: \n\
              Subject: $h_Subject: \n\
              X-Spam-Status: $h_X-Spam-Status: \n\
              X-Spam-Flag: $h_X-Spam-Flag: \n\
              Sender: $sender_address"
    finish
endif


The only thing I had to change is the "contains line", the change is minor but the result
was major !

Any idea why this happening ?, are there changes in evaluating "contains"

Jan

With regards Jan H. van Gils
Internet web-page http://www.VGNet.NL/
Internet e-mail address JanVG@???
RIPE Whois JHG5-RIPE, 6BONE Whois JHG1-6BONE