Mailing List Archive

Tag by score?
I only know of one way to tag - spam above a certain threshhold, e.g. 5.00.
Is there a way to tag score 5-10 with one label and scores >10 with another?
Thanks! - John
Re: Tag by score? [ In reply to ]
John Fleming wrote:

>I only know of one way to tag - spam above a certain threshhold, e.g. 5.00.
>Is there a way to tag score 5-10 with one label and scores >10 with another?
>
>
So long as you're interested in whole-number resolution:

:0 fw
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*
* ^Subject:\/.*
| formail -I "Subject: BIGSPAM - $MATCH"

:0 E
* ^X-Spam-Level: \*\*\*\*\*\*
* ^Subject:\/.*
| formail -I "Subject: LILSPAM - $MATCH"

I re-write subjects like this all the time, and dispose of very
high-scoring spam using X-Spam-Level. Not usually both together like this.

- Bob
Re: Tag by score? [ In reply to ]
On Sat, Feb 28, 2004 at 07:01:45AM -0500, John Fleming wrote:
> I only know of one way to tag - spam above a certain threshhold, e.g. 5.00.
> Is there a way to tag score 5-10 with one label and scores >10 with another?
> Thanks! - John

What I do is tag the subject line with "[SA: _HITS_]". Then I can sort
my caught-spam folders by score. Sorting into possibly/probably folders
is via the X-Spam-Level header.

cheers
rob c
Re: Tag by score? [ In reply to ]
> On Sat, Feb 28, 2004 at 07:01:45AM -0500, John Fleming wrote:
> > I only know of one way to tag - spam above a certain threshhold, e.g. 5.00.
> > Is there a way to tag score 5-10 with one label and scores >10 with another?
> > Thanks! - John
>
> What I do is tag the subject line with "[SA: _HITS_]". Then I can sort
> my caught-spam folders by score. Sorting into possibly/probably folders
> is via the X-Spam-Level header.
>
> cheers
> rob c


Here is what I do in my .procmailrc. It separates SPAM into three folders, based on a score of 3-3.99, 4-4.99, and 5+.
This can probably be adapted to other clients as well, as long as they can filter on X-Spam-Level headers (which I believe Outlook can't).

# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to the folder Mail\/SPAM\_Processing\/DetectedSPAM.
:0:
* ^X-Spam-Status: Yes
{
:0:
* ^X-Spam-Level: \*\*\*\*\*
adsnspam\/DetectedSpam
:0:
* ^X-Spam-Level: \*\*\*\*
adsnspam\/DetectedSpam4
:0:
adsnspam\/DetectedSpam3
}

Ragnar