]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/WatchMaildir.pm
remove unnecessary ->header_obj calls
[public-inbox.git] / lib / PublicInbox / WatchMaildir.pm
index 814b455b2ac579819feec01b8e291575b493e2d6..7d4139a5dcf983461193854495359c45556a97af 100644 (file)
@@ -163,9 +163,8 @@ sub import_eml ($$$) {
        # any header match means it's eligible for the inbox:
        if (my $watch_hdrs = $ibx->{-watchheaders}) {
                my $ok;
-               my $hdr = $eml->header_obj;
                for my $wh (@$watch_hdrs) {
-                       my @v = $hdr->header_raw($wh->[0]);
+                       my @v = $eml->header_raw($wh->[0]);
                        $ok = grep(/$wh->[1]/, @v) and last;
                }
                return unless $ok;