From: Don Armstrong Date: Sat, 1 Jul 2017 23:46:08 +0000 (-0700) Subject: if there is not a msgid, it cannot be spam X-Git-Tag: release/2.6.0~117 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=44daaa532291ed1b4d6e00d26cf8a698d8b259ea if there is not a msgid, it cannot be spam --- diff --git a/Debbugs/Log/Spam.pm b/Debbugs/Log/Spam.pm index 3b14b39..cca94de 100644 --- a/Debbugs/Log/Spam.pm +++ b/Debbugs/Log/Spam.pm @@ -158,6 +158,7 @@ Returns 0 if this message is not spam =cut sub is_spam { my ($self,$msgid) = @_; + return 0 if not defined $msgid or not length $msgid; $msgid =~ s/^<|>$//; if (exists $self->{spam}{$msgid} and $self->{spam}{$msgid}