unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
From: Eric Wong <e@80x24.org>
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	[thread overview]
Message-ID: <20210825084040.28346-3-e@80x24.org> (raw)
In-Reply-To: <20210825084040.28346-1-e@80x24.org>

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(<<EOM, undef, $folder, $fid) if $rw;

      parent reply	other threads:[~2021-08-25  8:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-25  8:40 [PATCH 0/2] minor lei usability tweaks Eric Wong
2021-08-25  8:40 ` [PATCH 1/2] lei up: improve --all=local stderr output Eric Wong
2021-08-25  8:40 ` Eric Wong [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://public-inbox.org/README

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210825084040.28346-3-e@80x24.org \
    --to=e@80x24.org \
    --cc=meta@public-inbox.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).