Format spam_subject_tag with score?

Jake Di Toro karrde at viluppo.net
Mon Mar 31 22:45:52 CEST 2003


On Mon, Mar 31, 2003 at 02:23:48PM -0600, Shawn Barnhart wrote:
> Mostly off-topic, but is there any way to format the spam_subject_tag?
> 
> I periodically like to see the scores of spam.  SpamAssassin adds a whole
> report to the message, which means you have to actually open the message.
> The sting of this is mostly gone by defusing the mime content.
> 
> Bogofiltered messages have the score is in the header, but it means opening
> the message to see it and that means subjecting myself to the MIME content
> in the message, since its not defused.
> 
> It'd be great to be able to use the formatting chars for the _format options
> with this so that a spam message would have...
> 
> Subject:  **SPAM  Spamicity=1.0** [Original Subject]

How about a little procmail magic

:0
* ^X-Bogosity: Yes
{
	:0fhw
	* ^Subject:\/.*
	SUBJECT=$MATCH

	:0fhw
	* ^X-Bogosity:.*spamicity=[0-9]\.[0-9]*
	SPAMICITY=$MATCH

	:0fhw
	| formail -I "Subject: *** SPAM Spamicity=$SPAMICITY *** $SUBJECT"
}

Seems a little eaiser that putting it in the program itself, and should cary over to other filter programs.

-- 
Till Later,
Jake <karrde at viluppo.net>
http://www.viluppo.net/





More information about the Bogofilter mailing list