about summary refs log tree commit homepage
path: root/lib/PublicInbox/URIimap.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-09-14 19:35:28 +0000
committerEric Wong <e@80x24.org>2021-09-14 20:12:33 +0000
commit076f1322ba8fd0386760fc68a9df9efd34afe4a6 (patch)
tree8ba0029659d9aa6edcaa94fef361285b879bd109 /lib/PublicInbox/URIimap.pm
parentdacde5e35071579fb25c3f5276355ec76c840151 (diff)
downloadpublic-inbox-076f1322ba8fd0386760fc68a9df9efd34afe4a6.tar.gz
Untested at the moment(*), but we were inadvertantly truncating
mailbox names with '/' due to our work-in-progress handling of
"/;UID=$NUM" parameter.

(*) strangely, my dovecot instance doesn't allow '/' by default,
    so the change to xt/net_writer-imap.t is untested.

Reported-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Link: https://public-inbox.org/meta/20210914175025.eq7s2shkc323itaf@meerkat.local/
Diffstat (limited to 'lib/PublicInbox/URIimap.pm')
-rw-r--r--lib/PublicInbox/URIimap.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/URIimap.pm b/lib/PublicInbox/URIimap.pm
index a309fde0..6907e32a 100644
--- a/lib/PublicInbox/URIimap.pm
+++ b/lib/PublicInbox/URIimap.pm
@@ -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;
 }