nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] Selecting messages with a range of Spam scores


From: Ralph Corderoy
Subject: Re: [Nmh-workers] Selecting messages with a range of Spam scores
Date: Sat, 21 Feb 2015 19:32:24 +0000

Hi Norm,

>       RAZOR2_CHECK,SPF_FAIL,SPF_HELO_PASS,T_REMOTE_IMAGE autolearn=disabled
>       version=3.3.1
...
>       spam last:45 +gone 3.0 6.2

    pick --x-spam-status '$' -and -lbr \
            `seq 3.0 0.1 6.2 |
            sed 's/\./\\\\&/; s/.*/--x-spam-status score=& -o/; $s/ -o$//'` \
        -rbr last:45

The initial check for end of line is to avoid the many OR checks on
emails that don't have the header.  My natural inclination is to check
for '^', but that doesn't match here.  Perhaps that's my old version,
though more probably that it isn't matching against just the header's
value, but the whole line.

Cheers, Ralph.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]