SpamHeader fixed to not warn about empty spamtag
[usit-rt.git] / local / lib / RT / Interface / Email / Filter / SpamHeader.pm
index 58c71fd..3adc458 100755 (executable)
@@ -61,7 +61,7 @@ sub GetCurrentUser {
         }
     }
 
-    my $spamtag = $head->get($RT::SpamHeader);
+    my $spamtag = $head->get($RT::SpamHeader) || '';
     if (defined $RT::SpamHighMatch && $spamtag =~ m/$RT::SpamHighMatch/) {
        if ($RT::SpamHighQueue) {
            # Move to spam queue