View Single Post
Old 17 Jun 2023, 08:35 PM   #51
BritTim
The "e" in e-mail
 
Join Date: May 2003
Location: mostly in Thailand
Posts: 3,095
Quote:
Originally Posted by qwertz123456 View Post
I changed the
Code:
"X-Spam-score" "4"
I'm not sure if the part
Code:
"^4\.[2-9]$") {
is important and where I might need to input that.
I have not carefully looked at your full code, but that regular expression is carefully allowing for a spam score that is is a decimal number between 4.2 and 4.9. I am surprised it is necessary, but presumably testing found that the comparison against 4 was only reliable for an X-Spam score of 5 and above. It suggests you need to be careful with your own comparisons. I think my own approach would be try to use Fastmail's comparisons, using them to set a flag that I use later rather than trying to change between GT and LT comparisons.
BritTim is offline   Reply With Quote