|
Subject: Re: Re: adding SPAM hits score to headers Newsgroups: gmane.mail.spam.spamassassin.general Date: 2003-10-19 13:58:07 GMT (4 years, 51 weeks, 16 hours and 39 minutes ago)
Nancy McGough <nm-reverse-spam-filter <at> ii.deflexion.com> wrote:
> I have a related question: How can I have _HITS_ display only
> one digit after the decimal point. For example, instead of 8.42
> just display 8.4? It's fine if I need to edit the code and
> recompile SA.
Look in PerMsgStatus.pm for the lines like this (there are
two):
$tag =~ s/_HITS_/sprintf("%05.2f", $self->{hits})/e;
Changing the "%05.2f" to "%04.1f" (or whatever you prefer)
should do it. There's no need to recompile anything. Just
restart spamd if you're using it.
--
Keith C. Ivey <kcivey <at> cpcug.org>
Washington, DC
-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise
Linux in the Boardroom; in the Front Office; & in the Server Room
http://www.enterpriselinuxforum.com
|
|
|