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 2023/03/17 22:10:25 UTC

[james-project] 02/02: JAMES-3754 MDC context for LIST EXTENDED (RFC-5258)

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

commit 85d4adf8bcd0645942b9d229cfc208655c977750
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Fri Mar 17 09:42:16 2023 +0700

    JAMES-3754 MDC context for LIST EXTENDED (RFC-5258)
---
 .../main/java/org/apache/james/imap/processor/ListProcessor.java    | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/protocols/imap/src/main/java/org/apache/james/imap/processor/ListProcessor.java b/protocols/imap/src/main/java/org/apache/james/imap/processor/ListProcessor.java
index a39cd7f1af..7f7ad6b6be 100644
--- a/protocols/imap/src/main/java/org/apache/james/imap/processor/ListProcessor.java
+++ b/protocols/imap/src/main/java/org/apache/james/imap/processor/ListProcessor.java
@@ -39,6 +39,7 @@ import org.apache.commons.lang3.tuple.Triple;
 import org.apache.james.imap.api.display.HumanReadableText;
 import org.apache.james.imap.api.display.ModifiedUtf7;
 import org.apache.james.imap.api.message.Capability;
+import org.apache.james.imap.api.message.StatusDataItems;
 import org.apache.james.imap.api.message.response.ImapResponseMessage;
 import org.apache.james.imap.api.message.response.StatusResponseFactory;
 import org.apache.james.imap.api.process.ImapSession;
@@ -382,6 +383,9 @@ public class ListProcessor<T extends ListRequest> extends AbstractMailboxProcess
         return MDCBuilder.create()
             .addToContext(MDCBuilder.ACTION, "LIST")
             .addToContext("base", request.getBaseReferenceName())
-            .addToContext("pattern", request.getMailboxPattern());
+            .addToContext("pattern", request.getMailboxPattern())
+            .addToContext("returnOptions", request.getReturnOptions().toString())
+            .addToContext("selectOptions", request.getSelectOptions().toString())
+            .addToContextIfPresent("statusItems", request.getStatusDataItems().map(StatusDataItems::toString));
     }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org