about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiInspect.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-05-06 02:22:39 +0000
committerEric Wong <e@80x24.org>2021-05-06 16:56:43 +0000
commit473b069c61b3d4936e2c5ed46fd7d348c9f6d1b7 (patch)
tree221ef389b49059d4f82e5257fb4acf38dd397097 /lib/PublicInbox/LeiInspect.pm
parentaa6ad348fea8a7affb1ecf025c297983d0e061cd (diff)
downloadpublic-inbox-473b069c61b3d4936e2c5ed46fd7d348c9f6d1b7.tar.gz
We use trailing slashes internally, but should not increase
visual noise for users by exposing them in config files or
DB storage (and shell completion/listings).

This fixes a long-standing bug in $lei->rel2abs that prevented
absolute paths from being canonicalized.
Diffstat (limited to 'lib/PublicInbox/LeiInspect.pm')
-rw-r--r--lib/PublicInbox/LeiInspect.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiInspect.pm b/lib/PublicInbox/LeiInspect.pm
index 714d2526..f79ebc9a 100644
--- a/lib/PublicInbox/LeiInspect.pm
+++ b/lib/PublicInbox/LeiInspect.pm
@@ -44,7 +44,7 @@ sub inspect_sync_folder ($$) {
                         } @maybe;
                 }
         } elsif ($folder =~ m!\A(maildir|mh):(.+)!i) {
-                my $type = $1;
+                my $type = lc $1;
                 $folders[0] = "$type:".$lei->abs_path($2);
         } elsif (-d $folder) {
                 $folders[0] = 'maildir:'.$lei->abs_path($folder);