You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by LuKreme <kr...@kreme.com> on 2007/03/12 09:04:01 UTC
0 padding the _SCORE_
I have rewrite_header Subject (Spam? _SCORE_) in my local.cf file,
but the trouble is when I sort by subject I get a list like this:
(Spam? 49.8)
(Spam? 5.1)
(Spam? 50.1)
(Spam? 6.0)
Is there any way to get _SCORE_ to print with a zero pad of one
character? This particular account does not auto delete any mail,
regardless of score (hey, not my idea, m'kay?)
If worse comes to worse I could get procmail to massage the header,
but I would prefer to handle this in SA.
--
"I used to hate the sun, because it'd shone on everything I'd done.
Made me feel that all that I had done was overfill the ashtray of my
life."
Re: 0 padding the _SCORE_
Posted by Magnus Holmgren <ho...@lysator.liu.se>.
On Monday 12 March 2007 14:32, LuKreme wrote:
> On 12-Mar-2007, at 03:26, Magnus Holmgren wrote:
> > Yes; see the Mail::SpamAssassin::Conf(3pm) manpage, section
> > "Template tags".
>
> Thanks, but out of curiosity what did the "(3pm)" mean?
It's a more specific man section than just (3), meaning "libraries (Perl
modules)". But not all installations create man pages from the embedded pod
documentation, so perldoc probably is a safer bet.
> I found the section with perldoc Mail::SpamAssassin::Conf
>
> I also saw this:
> Note that you should only use the _REQD_ and _SCORE_ tags
> when rewriting the Subject header if "report_safe" is 0.
> Otherwise,
> you may not be able to remove the SpamAssassin markup via
> the nor-
> mal methods. More information about tags is explained
> below in the
> TEMPLATE TAGS section.
>
> So I should not be subject tagging at all?
>
> Most my users use the subject tagging to sort (they're not
> sophisticated enough to filter on the X-Spam-Status, for example) but
> I've been running with report_safe 1 since that option was introduced
> back in 2.mumble. How serious is this warning?
I haven't tested what happens, and I've looked at the code but haven't been
able to figure out why this would be so. I thought report_safe preserved the
original spam unmodified, with any rewriting taking place in the header copy
in the encapsulating message. Maybe the documentation is backwards, but the
current code preserves the originals of the rewritten headers as
X-Spam-Prev-<name>. Maybe the documentation is obsolete. Could please
somebody knowing more explain?
--
Magnus Holmgren holmgren@lysator.liu.se
(No Cc of list mail needed, thanks)
Re: 0 padding the _SCORE_
Posted by LuKreme <kr...@kreme.com>.
On 12-Mar-2007, at 03:26, Magnus Holmgren wrote:
> Yes; see the Mail::SpamAssassin::Conf(3pm) manpage, section
> "Template tags".
Thanks, but out of curiosity what did the "(3pm)" mean?
I found the section with perldoc Mail::SpamAssassin::Conf
I also saw this:
Note that you should only use the _REQD_ and _SCORE_ tags
when rewriting the Subject header if "report_safe" is 0.
Otherwise,
you may not be able to remove the SpamAssassin markup via
the nor-
mal methods. More information about tags is explained
below in the
TEMPLATE TAGS section.
So I should not be subject tagging at all?
Most my users use the subject tagging to sort (they're not
sophisticated enough to filter on the X-Spam-Status, for example) but
I've been running with report_safe 1 since that option was introduced
back in 2.mumble. How serious is this warning?
--
If it wasn't for the pirates, I bet Star Wars: Ep III would have made
$50 million its first DAY!
Re: 0 padding the _SCORE_
Posted by Magnus Holmgren <ho...@lysator.liu.se>.
On Monday 12 March 2007 09:04, LuKreme wrote:
> I have rewrite_header Subject (Spam? _SCORE_) in my local.cf file,
> but the trouble is when I sort by subject I get a list like this:
>
> (Spam? 49.8)
> (Spam? 5.1)
> (Spam? 50.1)
> (Spam? 6.0)
>
> Is there any way to get _SCORE_ to print with a zero pad of one
> character? This particular account does not auto delete any mail,
> regardless of score (hey, not my idea, m'kay?)
Yes; see the Mail::SpamAssassin::Conf(3pm) manpage, section "Template tags".
--
Magnus Holmgren holmgren@lysator.liu.se
(No Cc of list mail needed, thanks)
"Exim is better at being younger, whereas sendmail is better for
Scrabble (50 point bonus for clearing your rack)" -- Dave Evans