james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tellier Benoit (JIRA)" <server-...@james.apache.org>
Subject [jira] [Created] (JAMES-2375) DSNBounce mailet do not provide a subject
Date Mon, 16 Apr 2018 05:03:00 GMT
Tellier Benoit created JAMES-2375:

             Summary: DSNBounce mailet do not provide a subject
                 Key: JAMES-2375
                 URL: https://issues.apache.org/jira/browse/JAMES-2375
             Project: James Server
          Issue Type: Bug
          Components: Mailet Contributions
            Reporter: Tellier Benoit

DSNBounce never position a subject on sent emails, independently from the "prefix" configuration

    public void test() throws Exception {
        FakeMailetConfig mailetConfig = FakeMailetConfig.builder()
            .setProperty("prefix", "Re:")

        MailAddress senderMailAddress = new MailAddress("sender@domain.com");
        FakeMail mail = FakeMail.builder()
                    .setText("My content"))


        List<SentMail> sentMails = fakeMailContext.getSentMails();
        SentMail sentMail = sentMails.get(0);
        MimeMessage sentMessage = sentMail.getMsg();
        assertThat(sentMessage.getSubject()).isEqualTo("Re: Toto");

will fail.

We need to use a default 'Re: ' prefix, and ensure a subject is always sent.

We need to check subjects for the RedirectNotify mailet hierarchy.

This message was sent by Atlassian JIRA

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

View raw message