[Rspamd-Users] How to rewrite subject with leading zeros of %d ?

Andy Spiegl rspamd.andy at spiegl.de
Fri Apr 14 17:57:43 UTC 2023


Hi,

I'm rewriting the subject of spammy mails like this:

 subject = "+++SPAM+++(%d) %s"

Is it possible to write the score %d with leading zeros, i.e. (02) instead of (2) ?
This would allow sorting the mails in the users JUNK folders.

I tried
 subject = "+++SPAM+++(%02d) %s"
but that adds the literal string "%02d" instead of the score. :-)

Thank you,
 Andy

-- 
 "Do not meddle in the affairs of cats, for they are subtle and will piss on
  your computer."  --Bruce Graham


More information about the Users mailing list