]> diplodocus.org Git - minc/commitdiff
Fix bug after making get_headers return hash ref.
authorepg@google.com <>
Thu, 2 Apr 2009 20:41:23 +0000 (13:41 -0700)
committerepg@google.com <>
Thu, 2 Apr 2009 20:41:23 +0000 (13:41 -0700)
(scan_spam): Don't dereference the cached hash ref.

minc

diff --git a/minc b/minc
index 6e0fcb5..1496450 100755 (executable)
--- a/minc
+++ b/minc
@@ -813,7 +813,7 @@ sub scan_spam {
         $tuple = $SPAM{$msgnum};
         if (defined($tuple->[0])) {
             # Filed by filter_mail, so we have the header.
         $tuple = $SPAM{$msgnum};
         if (defined($tuple->[0])) {
             # Filed by filter_mail, so we have the header.
-            $header = %{$tuple->[0]};
+            $header = $tuple->[0];
         } elsif (defined($tuple->[1])) {
             # Filed by maildir_spam, so we don't have the header.
             if ($run) {
         } elsif (defined($tuple->[1])) {
             # Filed by maildir_spam, so we don't have the header.
             if ($run) {