Skip to content

Fix parsing of negative spam scores - #2162

Merged
the-djmaze merged 1 commit into
the-djmaze:masterfrom
stefansieg:fix/negative-spam-score
Nov 27, 2026
Merged

the-djmaze merged 1 commit into
the-djmaze:masterfrom
stefansieg:fix/negative-spam-score

Conversation

@stefansieg

Copy link
Copy Markdown

The regular expressions used to parse spam scores from X-Spam-Status and X-Spam-Info did not account for negative values.

This change preserves the minus sign when parsing the spam score.

Tested both header formats with negative, zero and positive scores, including the formats reported in #1228.

Fixes #1939.

@the-djmaze the-djmaze added the bug Something isn't working label Nov 27, 2026
@the-djmaze
the-djmaze merged commit a697d70 into the-djmaze:master Nov 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Misinterpretation of negative spam scores

2 participants