user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 3/2] watch: quiet down rejected header matches
  @ 2016-06-17  1:25  7%   ` Eric Wong
  0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2016-06-17  1:25 UTC (permalink / raw)
  To: meta

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 =~ /::/) {

^ permalink raw reply related	[relevance 7%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-06-17  0:41     [PATCH 0/2] introduce public-inbox-watch Eric Wong
2016-06-17  0:41     ` [PATCH 2/2] watch: introduce watch directive Eric Wong
2016-06-17  1:25  7%   ` [PATCH 3/2] watch: quiet down rejected header matches Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).