Skip to content

Commit

Permalink
ISSUE-1445 LDAP mailing lists must preserve original Reply To (#1446)
Browse files Browse the repository at this point in the history
  • Loading branch information
chibenwa authored Jan 9, 2025
1 parent af31da9 commit 2f88ed4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@ private MailTransformation listToMailTransformation(MaybeSender maybeSender, Sea
private void addListHeaders(MimeMessage message, MailAddress listName) throws MessagingException {
message.addHeader("List-Id","<" + listName.asString() + ">");
message.addHeader("List-Post","<mailto:" + listName.asString() + ">");
message.setHeader("Reply-To", listName.asString());
}

private MailTransformation toRejectedProcessor(MailAddress listAddress) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1254,9 +1254,6 @@ void shouldAddListHeaders() throws Exception {

SoftAssertions.assertSoftly(Throwing.consumer(softly -> {
softly.assertThat(mailetContext.getSentMails()).hasSize(1);
softly.assertThat(mailetContext.getSentMails().get(0).getMsg().getHeader("Reply-To"))
.contains("mygroup@lists.james.org")
.hasSize(1);
softly.assertThat(mailetContext.getSentMails().get(0).getMsg().getHeader("List-Id"))
.contains("<mygroup@lists.james.org>");
softly.assertThat(mailetContext.getSentMails().get(0).getMsg().getHeader("List-Post"))
Expand Down

0 comments on commit 2f88ed4

Please sign in to comment.