You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2024/12/19 15:15:51 UTC
(james-project) branch master updated: JAMES-1838 Fix 'a0 LIST "#user." * (#2571)
This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
The following commit(s) were added to refs/heads/master by this push:
new cb7a606bac JAMES-1838 Fix 'a0 LIST "#user." * (#2571)
cb7a606bac is described below
commit cb7a606bac7b835140b0e1e346b3d7d4aecac3be
Author: Benoit TELLIER <bt...@linagora.com>
AuthorDate: Thu Dec 19 16:15:47 2024 +0100
JAMES-1838 Fix 'a0 LIST "#user." * (#2571)
---
.../org/apache/james/imap/scripts/ListWithSharedMailbox.test | 9 +++++++++
.../src/main/java/org/apache/james/imap/main/PathConverter.java | 4 +++-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/mpt/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/ListWithSharedMailbox.test b/mpt/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/ListWithSharedMailbox.test
index 3295f2995a..07d7432556 100644
--- a/mpt/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/ListWithSharedMailbox.test
+++ b/mpt/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/ListWithSharedMailbox.test
@@ -75,6 +75,15 @@ S: \* LIST \(\\HasNoChildren\) \".\" \"#user.boby.Sent\"
}
S: a7 OK LIST completed.
+C: a7bis LIST "#user." "*"
+SUB {
+S: \* LIST \(\\HasNoChildren\) \".\" \"#user.diana.sharedMailbox\"
+S: \* LIST \(\\HasChildren\) \".\" \"#user.boby.sharedMailbox\"
+S: \* LIST \(\\HasNoChildren\) \".\" \"#user.boby.sharedMailbox.child\"
+S: \* LIST \(\\HasNoChildren\) \".\" \"#user.boby.Sent\"
+}
+S: a7bis OK LIST completed.
+
# When looking up private namespace the shared mailboxes are not included
C: a8 LIST "#private" "%"
S: \* LIST \(\\HasNoChildren\) \"\.\" \"#private.INBOX\"
diff --git a/protocols/imap/src/main/java/org/apache/james/imap/main/PathConverter.java b/protocols/imap/src/main/java/org/apache/james/imap/main/PathConverter.java
index 7987eafd24..7d2d53281a 100644
--- a/protocols/imap/src/main/java/org/apache/james/imap/main/PathConverter.java
+++ b/protocols/imap/src/main/java/org/apache/james/imap/main/PathConverter.java
@@ -95,7 +95,9 @@ public interface PathConverter {
}
private MailboxPath buildAbsolutePath(String absolutePath) {
- return asMailboxPath(Splitter.on(mailboxSession.getPathDelimiter()).splitToList(absolutePath), mailboxSession);
+ return asMailboxPath(Splitter.on(mailboxSession.getPathDelimiter())
+ .omitEmptyStrings()
+ .splitToList(absolutePath), mailboxSession);
}
private MailboxPath asMailboxPath(List<String> mailboxPathParts, MailboxSession session) {
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org