Resend message IDs

pull/194/merge
M66B 3 years ago
parent abac33ec5f
commit 3c6dd126ff

@ -332,8 +332,19 @@ public class MessageHelper {
case "reply-to":
imessage.setReplyTo(InternetAddress.parse(value));
break;
// Resent-Sender
// Resent-Message-ID
case "message-id":
if (send) {
imessage.setHeader("Resent-Message-ID", message.msgid);
imessage.updateMessageID(value);
}
break;
case "references":
imessage.setHeader("References", value);
break;
case "in-reply-to":
imessage.setHeader("In-Reply-To", value);
break;
// Resent-Sender (=on behalf of)
}
}

@ -63,6 +63,11 @@ public class MimeMessageEx extends MimeMessage {
}
}
public void updateMessageID(String msgid) throws MessagingException {
this.msgid = msgid;
updateMessageID();
}
@Override
public synchronized Flags getFlags() throws MessagingException {
if (original == null)

Loading…
Cancel
Save