]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/URIimap.pm
uri_imap: handle '/' as an IMAP hierarchy separator
[public-inbox.git] / lib / PublicInbox / URIimap.pm
index a309fde062846cd9c89ccb17bde181645577dd89..6907e32a6031db53d0b0e815b2223deb8081ddc3 100644 (file)
@@ -63,7 +63,7 @@ sub path {
        my ($self) = @_;
        my (undef, undef, $path) = uri_split($$self);
        $path =~ s!\A/+!!;
-       $path =~ s![/;].*\z!!; # [;UIDVALIDITY=nz-number]/;UID=nz-number
+       $path =~ s!/?;.*\z!!; # [;UIDVALIDITY=nz-number]/;UID=nz-number
        $path eq '' ? undef : $path;
 }