|
|
@ -288,7 +288,7 @@ public class MessageHelper {
|
|
|
|
if (message.from != null && message.from.length > 0)
|
|
|
|
if (message.from != null && message.from.length > 0)
|
|
|
|
ourFrom = getFrom(message, identity);
|
|
|
|
ourFrom = getFrom(message, identity);
|
|
|
|
|
|
|
|
|
|
|
|
if (message.headers == null) {
|
|
|
|
if (message.headers == null || !Boolean.TRUE.equals(message.resend)) {
|
|
|
|
imessage.setHeader("Date", ourDate);
|
|
|
|
imessage.setHeader("Date", ourDate);
|
|
|
|
|
|
|
|
|
|
|
|
// Addresses
|
|
|
|
// Addresses
|
|
|
@ -392,7 +392,7 @@ public class MessageHelper {
|
|
|
|
|
|
|
|
|
|
|
|
// Send message
|
|
|
|
// Send message
|
|
|
|
if (identity != null) {
|
|
|
|
if (identity != null) {
|
|
|
|
if (message.headers == null) {
|
|
|
|
if (message.headers == null || !Boolean.TRUE.equals(message.resend)) {
|
|
|
|
// Add reply to
|
|
|
|
// Add reply to
|
|
|
|
if (identity.replyto != null)
|
|
|
|
if (identity.replyto != null)
|
|
|
|
imessage.setReplyTo(convertAddress(InternetAddress.parse(identity.replyto), identity));
|
|
|
|
imessage.setReplyTo(convertAddress(InternetAddress.parse(identity.replyto), identity));
|
|
|
@ -835,7 +835,7 @@ public class MessageHelper {
|
|
|
|
// Build html body
|
|
|
|
// Build html body
|
|
|
|
Document document = JsoupEx.parse(message.getFile(context));
|
|
|
|
Document document = JsoupEx.parse(message.getFile(context));
|
|
|
|
|
|
|
|
|
|
|
|
if (message.headers != null) {
|
|
|
|
if (message.headers != null && Boolean.TRUE.equals(message.resend)) {
|
|
|
|
Element body = document.body();
|
|
|
|
Element body = document.body();
|
|
|
|
if (body.children().size() == 1) {
|
|
|
|
if (body.children().size() == 1) {
|
|
|
|
// Restore original body
|
|
|
|
// Restore original body
|
|
|
|