Fix the References in InboundEmailRejectionSender
In real world setups, the Message-Id header is surrounded by "<>". Before this commit, we tried to add < and > around the Message-Id, leading to "<<Message-Id@mail.com>>", which is invalid. Change-Id: I0611142de270ee7977537cebd5c77af31a2f226f
This commit is contained in:
@@ -59,7 +59,7 @@ public class InboundEmailRejectionSender extends OutgoingEmail {
|
||||
add(RecipientType.TO, to);
|
||||
|
||||
if (!threadId.isEmpty()) {
|
||||
setHeader(MailHeader.REFERENCES.fieldName(), "<" + threadId + ">");
|
||||
setHeader(MailHeader.REFERENCES.fieldName(), threadId);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user