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-ASN: 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 4784C1F8C8 for ; Wed, 25 Aug 2021 08:40:41 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/2] lei_mail_sync: remove warning message from caller Date: Wed, 25 Aug 2021 08:40:40 +0000 Message-Id: <20210825084040.28346-3-e@80x24.org> In-Reply-To: <20210825084040.28346-1-e@80x24.org> References: <20210825084040.28346-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: We can afford to be liberal in what messages we accept internally, since LeiToMail uses a trailing slash internally. --- lib/PublicInbox/LeiMailSync.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/LeiMailSync.pm b/lib/PublicInbox/LeiMailSync.pm index 80e1bb9d..b63f8dea 100644 --- a/lib/PublicInbox/LeiMailSync.pm +++ b/lib/PublicInbox/LeiMailSync.pm @@ -79,8 +79,8 @@ sub fid_for { my ($fid) = $dbh->selectrow_array($sel, undef, $folder); return $fid if defined $fid; + # caller had trailing slash (LeiToMail) if ($folder =~ s!\A((?:maildir|mh):.*?)/+\z!$1!i) { - warn "folder: $folder/ had trailing slash in arg\n"; ($fid) = $dbh->selectrow_array($sel, undef, $folder); if (defined $fid) { $dbh->do(<