Added message maximum quoted text level for speed.

Read https://github.com/the-djmaze/snappymail/issues/902#issuecomment-1416777217
This commit is contained in:
the-djmaze 2023-02-04 16:39:50 +01:00
parent b0a4fb77be
commit fc5b26dfc2
44 changed files with 59 additions and 1 deletions

View file

@ -119,6 +119,8 @@ export const
debug = false, // Config()->Get('debug', 'enable', false);
detectHiddenImages = true, // !!SettingsGet('try_to_detect_hidden_images'),
bqLevel = parseInt(SettingsUserStore.maxBlockquotesLevel()),
result = {
hasExternals: false
},
@ -201,6 +203,10 @@ export const
nodeIterator.referenceNode.remove();
}
if (0 < bqLevel) {
tpl.content.querySelectorAll(new Array(1 + bqLevel).fill('blockquote').join(' ')).forEach(node => node.remove());
}
tpl.content.querySelectorAll('*').forEach(oElement => {
const name = oElement.tagName,
oStyle = oElement.style;