about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-05-21 10:28:28 +0000
committerEric Wong <e@80x24.org>2021-05-23 01:33:04 +0000
commit55bed484ed5436b075c069ae9e42fb45890ad7e9 (patch)
treedefecd9e58f9c0b241163f55ce8d66f5f4bd82fa /lib
parentdc890423db7c63c07ab248309accb429df405576 (diff)
downloadpublic-inbox-55bed484ed5436b075c069ae9e42fb45890ad7e9.tar.gz
This is needed for the upcoming "lei export-kw"
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/LeiInput.pm3
1 files changed, 2 insertions, 1 deletions
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");
                         }