From 2f69c2938a9f6bd36740f050c9e2661206b17c34 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 17 Jun 2016 01:23:22 +0000 Subject: 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. --- lib/PublicInbox/WatchMaildir.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib') 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 =~ /::/) { -- cgit v1.2.3-24-ge0c7