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 c86910953c841fa0eab4da253d9d208546286e9d Author: Benoit TELLIER <btell...@linagora.com> AuthorDate: Tue Dec 19 08:03:42 2023 +0100 JAMES-3944 Keep original name - 1. This allows linking the mail together as the duplicated mail name is suffixed by the original. - 2. Names getting longer is used as a loop detection and prevention measure, resetting it prevents loop detection. - 3. And it is not needed. --- .../apache/james/transport/mailets/RecipientRewriteTableProcessor.java | 1 - .../src/main/java/org/apache/james/jmap/mailet/filter/ActionApplier.java | 1 - 2 files changed, 2 deletions(-) diff --git a/server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/RecipientRewriteTableProcessor.java b/server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/RecipientRewriteTableProcessor.java index a6dd91e2d5..88124ee853 100644 --- a/server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/RecipientRewriteTableProcessor.java +++ b/server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/RecipientRewriteTableProcessor.java @@ -252,7 +252,6 @@ public class RecipientRewriteTableProcessor { try { copy.setRecipients(ImmutableList.of(originalRecipient)); copy.setState(errorProcessor.getValue()); - copy.setName(MailImpl.getId()); context.sendMail(copy, errorProcessor.getValue()); } finally { diff --git a/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/mailet/filter/ActionApplier.java b/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/mailet/filter/ActionApplier.java index 0017dba5ca..742b06380f 100644 --- a/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/mailet/filter/ActionApplier.java +++ b/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/mailet/filter/ActionApplier.java @@ -238,7 +238,6 @@ public class ActionApplier { try { copy.setRecipients(ImmutableList.of(mailAddress)); copy.setState(RRT_ERROR.getValue()); - copy.setName(MailImpl.getId()); mailetContext.sendMail(copy); } finally { --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org For additional commands, e-mail: notifications-h...@james.apache.org