You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2005/07/08 18:32:09 UTC

[Bug 4470] Leading "0" in scores

http://bugzilla.spamassassin.org/show_bug.cgi?id=4470


felicity@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




------- Additional Comments From felicity@apache.org  2005-07-08 09:32 -------
If you RTM, there's a section titled "TEMPLATE TAGS" which explains how you can do this already:

        _SCORE(PAD)_      message score, if PAD is included and is either spaces or
                          zeroes, then pad scores with that many spaces or zeroes
                          (default, none)  ie: _SCORE(0)_ makes 2.4 become 02.4,
                          _SCORE(00)_ is 002.4.  12.3 would be 12.3 and 012.3
                          respectively.


In general, if you have a SA usage question, it's better to ask on the users@ list first before opening a 
ticket.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Re: [Bug 4470] Leading "0" in scores

Posted by Theo Van Dinter <fe...@apache.org>.
On Fri, Jul 08, 2005 at 10:27:57AM -0700, Loren Wilton wrote:
> >         _SCORE(PAD)_      message score, if PAD is included and is either
> spaces or
> >                           zeroes, then pad scores with that many spaces or
> zeroes
> 
> There may be another bug here.  I tried a few days ago using a pad of ( 00)
> and ended up with the space ignored.  What I wanted was numbers to be like
> "100", " 50", " 02".

No bug there.  As the documentation says, "either spaces or zeroes".
Patches accepted if you want that to read "and/or". ;)

-- 
Randomly Generated Tagline:
"... and on that side you have a 50kg kid, and that's a pretty good sized
  kid..."                  - Prof. Farr

Re: [Bug 4470] Leading "0" in scores

Posted by Loren Wilton <lw...@earthlink.net>.
>         _SCORE(PAD)_      message score, if PAD is included and is either
spaces or
>                           zeroes, then pad scores with that many spaces or
zeroes

There may be another bug here.  I tried a few days ago using a pad of ( 00)
and ended up with the space ignored.  What I wanted was numbers to be like
"100", " 50", " 02".