nmh-workers
[Top] [All Lists]

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

2015-02-21 13:32:42
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.

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>