]> Sergey Matveev's repositories - public-inbox.git/commitdiff
watch: quiet down rejected header matches
authorEric Wong <e@80x24.org>
Fri, 17 Jun 2016 01:23:22 +0000 (01:23 +0000)
committerEric Wong <e@80x24.org>
Fri, 17 Jun 2016 01:23:22 +0000 (01:23 +0000)
People may use this directive because they prefer to merge
several mailing lists into one local mailbox, so there may
be many messages and we should not needlessly clutter logs
for this.

lib/PublicInbox/WatchMaildir.pm

index b23556aef5a64ea979a78d3e52aa0aa3213dfd66..35363755ca6373d6bab9f5f7e8c9f7937852b63a 100644 (file)
@@ -86,10 +86,7 @@ sub _try_path {
        my $wm = $inbox->{-watchheader};
        if ($wm) {
                my $v = $mime->header_obj->header_raw($wm->[0]);
-               unless ($v && $v =~ $wm->[1]) {
-                       warn "$wm->[0] failed to match $wm->[1]\n";
-                       return;
-               }
+               return unless ($v && $v =~ $wm->[1]);
        }
        my $f = $inbox->{filter};
        if ($f && $f =~ /::/) {