From 44daaa532291ed1b4d6e00d26cf8a698d8b259ea Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sat, 1 Jul 2017 16:46:08 -0700 Subject: [PATCH] if there is not a msgid, it cannot be spam --- Debbugs/Log/Spam.pm | 1 + 1 file changed, 1 insertion(+) 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} -- 2.39.2