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 F3C4A1F9FE for ; Thu, 17 Jun 2021 22:00:47 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/3] lei_input: prefix bare Maildir paths w/ "maildir:" Date: Thu, 17 Jun 2021 22:00:46 +0000 Message-Id: <20210617220047.11225-3-e@80x24.org> In-Reply-To: <20210617220047.11225-1-e@80x24.org> References: <20210617220047.11225-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This will simplify upcoming code for watches. --- lib/PublicInbox/LeiInput.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/PublicInbox/LeiInput.pm b/lib/PublicInbox/LeiInput.pm index 38d3d36d..de2a8ff1 100644 --- a/lib/PublicInbox/LeiInput.pm +++ b/lib/PublicInbox/LeiInput.pm @@ -300,7 +300,8 @@ $input is `eml', not --in-format=$in_fmt push @f, $input; } elsif (-d "$input/new" && -d "$input/cur") { if ($sync) { - $input = $lei->abs_path($input); + $input = 'maildir:'. + $lei->abs_path($input); push @{$sync->{ok}}, $input; } push @md, $input;