You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by rc...@apache.org on 2024/02/28 04:03:24 UTC

(james-project) branch master updated (e48f8fcde7 -> 80b88e42ee)

This is an automated email from the ASF dual-hosted git repository.

rcordier pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git


    from e48f8fcde7 [BUILD] RemoteDeliveryErrorHandlingTest was unstable
     new f7a898ad36 [FIX] Drop unused code in DeletedMessageVaultDeletionCallback
     new 80b88e42ee [FIX] Lower log message in MaybeSender

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 core/src/main/java/org/apache/james/core/MaybeSender.java        | 2 +-
 .../vault/metadata/DeletedMessageVaultDeletionCallback.java      | 9 ---------
 2 files changed, 1 insertion(+), 10 deletions(-)


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


(james-project) 01/02: [FIX] Drop unused code in DeletedMessageVaultDeletionCallback

Posted by rc...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit f7a898ad36e1f7ce41d98cb2f67da1fcc4cc2b56
Author: Benoit TELLIER <bt...@linagora.com>
AuthorDate: Tue Feb 27 11:41:27 2024 +0100

    [FIX] Drop unused code in DeletedMessageVaultDeletionCallback
---
 .../vault/metadata/DeletedMessageVaultDeletionCallback.java      | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/mailbox/plugin/deleted-messages-vault-cassandra/src/main/java/org/apache/james/vault/metadata/DeletedMessageVaultDeletionCallback.java b/mailbox/plugin/deleted-messages-vault-cassandra/src/main/java/org/apache/james/vault/metadata/DeletedMessageVaultDeletionCallback.java
index 57746c6be7..b23a895f20 100644
--- a/mailbox/plugin/deleted-messages-vault-cassandra/src/main/java/org/apache/james/vault/metadata/DeletedMessageVaultDeletionCallback.java
+++ b/mailbox/plugin/deleted-messages-vault-cassandra/src/main/java/org/apache/james/vault/metadata/DeletedMessageVaultDeletionCallback.java
@@ -26,7 +26,6 @@ import java.io.SequenceInputStream;
 import java.time.Clock;
 import java.time.ZoneOffset;
 import java.time.ZonedDateTime;
-import java.util.Date;
 import java.util.Optional;
 import java.util.Set;
 
@@ -109,14 +108,6 @@ public class DeletedMessageVaultDeletionCallback implements DeleteMessageListene
         }
     }
 
-
-    private ZonedDateTime retrieveDeliveryDate(Optional<Message> mimeMessage, org.apache.james.mailbox.store.mail.model.Message message) {
-        return mimeMessage.map(Message::getDate)
-            .map(Date::toInstant)
-            .map(instant -> ZonedDateTime.ofInstant(instant, ZoneOffset.UTC))
-            .orElse(ZonedDateTime.ofInstant(message.getInternalDate().toInstant(), ZoneOffset.UTC));
-    }
-
     private MaybeSender retrieveSender(Optional<Message> mimeMessage) {
         return mimeMessage
             .map(Message::getSender)


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


(james-project) 02/02: [FIX] Lower log message in MaybeSender

Posted by rc...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 80b88e42ee6ebc346ffff0f3a85c1be3376ffa22
Author: Benoit TELLIER <bt...@linagora.com>
AuthorDate: Tue Feb 27 11:41:54 2024 +0100

    [FIX] Lower log message in MaybeSender
    
    This is benign, not an issue.
---
 core/src/main/java/org/apache/james/core/MaybeSender.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/main/java/org/apache/james/core/MaybeSender.java b/core/src/main/java/org/apache/james/core/MaybeSender.java
index 3038ee0a7e..0d00fd043c 100644
--- a/core/src/main/java/org/apache/james/core/MaybeSender.java
+++ b/core/src/main/java/org/apache/james/core/MaybeSender.java
@@ -47,7 +47,7 @@ public class MaybeSender {
             return MaybeSender.of(new MailAddress(sender));
         } catch (AddressException e) {
             // Should never happen as long as the user does not modify the header by himself
-            LOGGER.warn("Unable to parse the sender address {}, so we fallback to a null sender", sender, e);
+            LOGGER.info("Unable to parse the sender address {}, so we fallback to a null sender: {}", sender, e.getMessage());
             return MaybeSender.nullSender();
         }
     }


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