Remove unused old solution of #1641

This commit is contained in:
the-djmaze 2026-11-01 22:51:40 +01:00
parent ef49cc142e
commit 61a16e2e72

View file

@ -312,6 +312,8 @@ export const
// https://github.com/the-djmaze/snappymail/issues/1860
.replace(/<(\/?)x-html(\s[^>]*)?>/gi, '')
.replace(/<(\/?)head(\s[^>]*)?>/gi, '')
// .replace(/<body(\s[^>]*)?>/i, '<article class="mail-body"$1>')
// .replace(/<\/?body(\s[^>]*)?>.*?$/gi, '<$1article$2>')
.replace(/<body(\s[^>]*)?>/i, '<div class="mail-body"$1>')
.replace(/<(\/?)body(\s[^>]*)?>/gi, '<$1div$2>')
// .replace(/<\/?(html|head)[^>]*>/gi, '')
@ -361,18 +363,6 @@ export const
});
*/
// https://github.com/the-djmaze/snappymail/issues/1641
let body = tmpl.content.querySelector('.mail-body');
[...tmpl.content.querySelectorAll('.mail-body + .mail-body')]
.forEach(oElement => body.append(...oElement.childNodes));
/*
.forEach(oElement => {
let bq = createElement('blockquote');
bq.append(...oElement.childNodes);
body.replaceWith(bq);
});
*/
[...tmpl.content.querySelectorAll('*')].forEach(oElement => {
const name = oElement.tagName,
oStyle = oElement.style;