Re: Reformatting spam score in subject?

2017-03-29 Thread Jeff Morris
And to follow-up on my previous follow-up (sorry, it's late here and I'm tired) :-) ... The "1+" I mentioned was actually "0+" originally... I had changed it to 1+ while debugging this. Oops. So my final changed is actually a bit simpler: { $1 eq 'SCORE' ? (sprintf("%07.3f",$spam_le

Re: Reformatting spam score in subject?

2017-03-29 Thread Jeff Morris
After a few more hours of hacking away at this, I finally solved it! I was actually on the right track when I mentioned the $subject_tag parsing code on line 16373 in my previous email. That is in fact the code that gets executed for $sa_spam_subject_tag as well. The reason it wasn't working

Reformatting spam score in subject?

2017-03-28 Thread Jeff Morris
I posted about this last year but wasn't able to find a solution, so I'm revisiting it. I have amavis configured to add the spam score to the subject line of spammy messages via the following variable in amavisd.conf: $sa_spam_subject_tag = '[SPAM: _SCORE_] '; This gives me subject lines