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 2021/02/25 09:06:53 UTC

[james-project] 05/12: JAMES-3504 Correlate POP3 mailbox and mailbox/api mailbox

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 28badc08695820a5fb7e3e736dbd71d1f5bec2e9
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Tue Feb 23 12:08:21 2021 +0700

    JAMES-3504 Correlate POP3 mailbox and mailbox/api mailbox
---
 .../main/java/org/apache/james/pop3server/core/PassCmdHandler.java | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/server/protocols/protocols-pop3/src/main/java/org/apache/james/pop3server/core/PassCmdHandler.java b/server/protocols/protocols-pop3/src/main/java/org/apache/james/pop3server/core/PassCmdHandler.java
index 6456d15..dca994f 100644
--- a/server/protocols/protocols-pop3/src/main/java/org/apache/james/pop3server/core/PassCmdHandler.java
+++ b/server/protocols/protocols-pop3/src/main/java/org/apache/james/pop3server/core/PassCmdHandler.java
@@ -93,7 +93,12 @@ public class PassCmdHandler extends AbstractPassCmdHandler  {
                 LOGGER.info("Provisioning INBOX. {} created.", mailboxId);
             }
             MessageManager mailbox = manager.getMailbox(MailboxPath.inbox(mSession), mSession);
-            return new MailboxAdapter(manager, mailbox, mSession);
+            MailboxAdapter mailboxAdapter = new MailboxAdapter(manager, mailbox, mSession);
+            LOGGER.info("Opening mailbox {} {} with mailbox session {}",
+                mailbox.getId().serialize(),
+                mailbox.getMailboxPath().asString(),
+                mSession.getSessionId().getValue());
+            return mailboxAdapter;
         } catch (BadCredentialsException e) {
             LOGGER.info("Bad credential supplied for {} with remote address {}",
                 session.getUsername().asString(),


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