From: Eric Wong Date: Fri, 17 Jun 2016 01:23:22 +0000 (+0000) Subject: watch: quiet down rejected header matches X-Git-Tag: v1.0.0~424 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=2f69c2938a9f6bd36740f050c9e2661206b17c34;p=public-inbox.git watch: quiet down rejected header matches 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. --- diff --git a/lib/PublicInbox/WatchMaildir.pm b/lib/PublicInbox/WatchMaildir.pm index b23556ae..35363755 100644 --- a/lib/PublicInbox/WatchMaildir.pm +++ b/lib/PublicInbox/WatchMaildir.pm @@ -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 =~ /::/) {