From: Don Armstrong Date: Wed, 21 Feb 2018 21:25:15 +0000 (-0800) Subject: scores can be negative X-Git-Tag: release/2.6.0~24 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=6c25cd47914e56919d5ad1529b88f1a958d0c84a scores can be negative --- diff --git a/bin/debbugs-spam b/bin/debbugs-spam index a24c02a..da5e457 100755 --- a/bin/debbugs-spam +++ b/bin/debbugs-spam @@ -373,7 +373,7 @@ sub spam_score { while (<$spamc_out>) { if (/^X-Spam/) { $report .= $_; - if (/^X-Spam-Status: (Yes|No), score=([\d\.]+) required=([\d\.]+)/) { + if (/^X-Spam-Status: (Yes|No), score=(-?[\d\.]+) required=(-?[\d\.]+)/) { $threshold = $3; $score = $2; }