vttranlina commented on code in PR #2541:
URL: https://github.com/apache/james-project/pull/2541#discussion_r1868805332


##########
protocols/imap/src/main/java/org/apache/james/imap/processor/DeleteProcessor.java:
##########
@@ -55,6 +56,11 @@ public DeleteProcessor(MailboxManager mailboxManager, 
StatusResponseFactory fact
     protected Mono<Void> processRequestReactive(DeleteRequest request, 
ImapSession session, Responder responder) {
         MailboxManager mailboxManager = getMailboxManager();
         MailboxPath mailboxPath = 
pathConverterFactory.forSession(session).buildFullPath(request.getMailboxName());
+        if (DefaultMailboxes.INBOX.equalsIgnoreCase(mailboxPath.getName())) {
+            LOGGER.info("Deleting INBOX mailbox is not allowed");

Review Comment:
   It would be better to include the session username in the log.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to