mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 04:59:21 +03:00
Added message maximum quoted text level for speed.
Read https://github.com/the-djmaze/snappymail/issues/902#issuecomment-1416777217
This commit is contained in:
parent
b0a4fb77be
commit
fc5b26dfc2
44 changed files with 59 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue