Bugfix: forward mail should not embed images by default #491

This commit is contained in:
the-djmaze 2022-08-23 11:22:49 +02:00
parent 291ebc5f0e
commit e2d29af045

View file

@ -1030,7 +1030,7 @@ export class ComposePopupView extends AbstractViewPopup {
// no default // no default
} }
sText = message.bodyAsHTML(); sText = message.bodyAsHTML().replace(/<img[^>]+>/g, '').replace(/<a\s[^>]+><\/a>/g, '');
let encrypted; let encrypted;
switch (lineComposeType) { switch (lineComposeType) {
@ -1039,7 +1039,7 @@ export class ComposePopupView extends AbstractViewPopup {
sFrom = message.fromToLine(false, true); sFrom = message.fromToLine(false, true);
sText = '<br><br><p>' + i18n('COMPOSE/REPLY_MESSAGE_TITLE', { DATETIME: sDate, EMAIL: sFrom }) sText = '<br><br><p>' + i18n('COMPOSE/REPLY_MESSAGE_TITLE', { DATETIME: sDate, EMAIL: sFrom })
+ ':</p><blockquote>' + ':</p><blockquote>'
+ sText.replace(/<img[^>]+>/g, '').replace(/<a\s[^>]+><\/a>/g, '').trim() + sText.trim()
+ '</blockquote>'; + '</blockquote>';
break; break;