]> Sergey Matveev's repositories - public-inbox.git/commitdiff
extsearchidx: quiet warning for unindexed `d' messages
authorEric Wong <e@80x24.org>
Sat, 7 Nov 2020 10:56:56 +0000 (10:56 +0000)
committerEric Wong <e@80x24.org>
Sun, 8 Nov 2020 10:18:19 +0000 (10:18 +0000)
"deleted" messages (via -learn <spam|rm>) 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

index 9da425383ad6f2f2f7618d89326557e10d1d78b7..2bb9afceb2298c6c8458ef2d93eedfbfdb8b4ecc 100644 (file)
@@ -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.
        }
 }