]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LEI.pm
lei_mail_sync: Maildir canonicalization omits trailing slash
[public-inbox.git] / lib / PublicInbox / LEI.pm
index 9dbbeba98c6cd362e609ae7d9cb923a7b746aa00..7349c2614bf307a3e509922acff201379dd1a779 100644 (file)
@@ -70,6 +70,7 @@ sub rel2abs {
        my ($self, $p) = @_;
        if (index($p, '/') == 0) { # already absolute
                $p =~ tr!/!/!s; # squeeze redundant slashes
+               chop($p) if substr($p, -1, 1) eq '/';
                return $p;
        }
        my $pwd = $self->{env}->{PWD};