From 55bed484ed5436b075c069ae9e42fb45890ad7e9 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 21 May 2021 10:28:28 +0000 Subject: lei_input: fix canonicalization of Maildirs for sync This is needed for the upcoming "lei export-kw" --- lib/PublicInbox/LeiInput.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/PublicInbox/LeiInput.pm b/lib/PublicInbox/LeiInput.pm index cfdd3628..4ff7a379 100644 --- a/lib/PublicInbox/LeiInput.pm +++ b/lib/PublicInbox/LeiInput.pm @@ -250,7 +250,8 @@ sub prepare_inputs { # returns undef on error require PublicInbox::MdirReader; $ifmt eq 'maildir' or return $lei->fail("$ifmt not supported"); - $input = $lei->abs_path($input) if $sync; + $sync and $input = 'maildir:'. + $lei->abs_path($input_path); } else { return $lei->fail("Unable to handle $input"); } -- cgit v1.2.3-24-ge0c7