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/01/17 01:23:38 UTC

[james-project] branch master updated: [REFACTORING] pretty print MaybeSender when spooling mail (#1396)

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 7968b7e7bb [REFACTORING] pretty print MaybeSender when spooling mail (#1396)
7968b7e7bb is described below

commit 7968b7e7bbb721cca2af088ae62587d6d53403d5
Author: ouvtam <11...@users.noreply.github.com>
AuthorDate: Tue Jan 17 02:23:32 2023 +0100

    [REFACTORING] pretty print MaybeSender when spooling mail (#1396)
---
 .../src/main/java/org/apache/james/smtpserver/SendMailHandler.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/protocols/protocols-smtp/src/main/java/org/apache/james/smtpserver/SendMailHandler.java b/server/protocols/protocols-smtp/src/main/java/org/apache/james/smtpserver/SendMailHandler.java
index 43e8ce7362..a6c155fdd0 100644
--- a/server/protocols/protocols-smtp/src/main/java/org/apache/james/smtpserver/SendMailHandler.java
+++ b/server/protocols/protocols-smtp/src/main/java/org/apache/james/smtpserver/SendMailHandler.java
@@ -75,7 +75,7 @@ public class SendMailHandler implements JamesMessageHook {
             queue.enQueue(mail);
             LOGGER.info("Successfully spooled mail {} with messageId {} from {} on {} for {}", mail.getName(),
                 mail.getMessage().getMessageID(),
-                mail.getMaybeSender(),
+                mail.getMaybeSender().asString(),
                 session.getRemoteAddress().getAddress(),
                 mail.getRecipients());
         } catch (Exception me) {


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