X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bin%2Fdebbugs-spam;h=09077e0acccac2a0c842caf0df07b6cea79ab520;hb=6532b246361b5d28b6ce3b44154a71edd3ca9a9e;hp=a24c02a3e8f20f4ad28efc0c554aa9f8ea68b0e3;hpb=e22ecf3092665772654bf8d6f88bf4d328ec07e2;p=debbugs.git diff --git a/bin/debbugs-spam b/bin/debbugs-spam index a24c02a..09077e0 100755 --- a/bin/debbugs-spam +++ b/bin/debbugs-spam @@ -202,10 +202,10 @@ sub mark_it { my $body = $rec->{text}; my ($subject) = $body =~ /^Subject: *(.+)$/mi; my $is_match = 0; - if ($subject =~ /\Q$regex\E/) { + if ($subject =~ /$regex/) { $is_match = 1; } - if ($mid =~ /\Q$regex\E/) { + if ($mid =~ /$regex/) { $is_match = 1; } if ($is_match) { @@ -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; }