SpamHeader fixed to not warn about empty spamtag
authorMikal Kolbein Gule <m.k.gule@usit.uio.no>
Wed, 4 Jul 2012 15:25:44 +0000 (17:25 +0200)
committerMikal Kolbein Gule <m.k.gule@usit.uio.no>
Wed, 4 Jul 2012 15:25:44 +0000 (17:25 +0200)
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