> The zero-padding is only available when _SCORE(pad)_ is expanded as a true
> macro call (e.g. in notification and log templates). Unfortunately the
> pad argument is not understood in a simple string sunstitution like
> used in the Subject template, which currently is not implemented as
> a true macro call - for speed.

A simple modification in sub add_forwarding_header_edits_per_recip
can provide any formatting you like, e.g. replacing the:

  $1 eq 'SCORE' ? (0+sprintf("%.3f",$spam_level+$boost))

with:
  $1 eq 'SCORE' ? (sprintf("%05.2f",$spam_level+$boost))

can provide the zero-padded score, rounded to two decimal places.

  Mark

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to