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

Andy Spiegl rspamd.andy at spiegl.de
Mon Apr 24 10:52:27 UTC 2023


I guess no response from anybody means that this is not possible with rspamd?
Thanks,
 Andy

On 2023-04-14, 19:57, Andy Spiegl wrote:
> 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

-- 
 The steady state of disks is full.      -- Ken Thompson


More information about the Users mailing list