From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 9389A1FA1A for ; Sat, 7 Nov 2020 10:57:06 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 06/10] extsearchidx: quiet warning for unindexed `d' messages Date: Sat, 7 Nov 2020 10:56:56 +0000 Message-Id: <20201107105700.12586-7-e@80x24.org> In-Reply-To: <20201107105700.12586-1-e@80x24.org> References: <20201107105700.12586-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: "deleted" messages (via -learn ) in the source inboxes are likely to already be unindexed, so avoid triggering needless warnings about the spam message being missing. --- lib/PublicInbox/ExtSearchIdx.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/PublicInbox/ExtSearchIdx.pm b/lib/PublicInbox/ExtSearchIdx.pm index 9da42538..2bb9afce 100644 --- a/lib/PublicInbox/ExtSearchIdx.pm +++ b/lib/PublicInbox/ExtSearchIdx.pm @@ -164,7 +164,8 @@ sub do_finalize ($) { } elsif (exists $req->{new_smsg}) { # totally unseen messsage index_unseen($req); } else { - warn "W: ignoring delete $req->{oid} (not found)\n"; + # `d' message was already unindexed in the v1/v2 inboxes, + # so it's too noisy to warn, here. } }