From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 130021FF40; Fri, 17 Jun 2016 01:25:13 +0000 (UTC) Date: Fri, 17 Jun 2016 01:25:13 +0000 From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 3/2] watch: quiet down rejected header matches Message-ID: <20160617012513.GA2782@dcvr.yhbt.net> References: <20160617004128.1037-1-e@80x24.org> <20160617004128.1037-3-e@80x24.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160617004128.1037-3-e@80x24.org> List-Id: 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(-) diff --git a/lib/PublicInbox/WatchMaildir.pm b/lib/PublicInbox/WatchMaildir.pm index b23556a..3536375 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 =~ /::/) {