]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei_input: fix canonicalization of Maildirs for sync
authorEric Wong <e@80x24.org>
Fri, 21 May 2021 10:28:28 +0000 (10:28 +0000)
committerEric Wong <e@80x24.org>
Sun, 23 May 2021 01:33:04 +0000 (01:33 +0000)
This is needed for the upcoming "lei export-kw"

lib/PublicInbox/LeiInput.pm

index cfdd362859d8750aed02ec273553f1b546eb9b12..4ff7a379b3c3800c96d4648ea629146d5b1627fc 100644 (file)
@@ -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");
                        }