Block remote images by default

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-10-10 21:53:12 +03:00
co-authored by Copilot
parent 5cd8d545e9
commit 2068e3f32b
15 changed files with 166 additions and 16 deletions
+3
View File
@@ -611,6 +611,7 @@ async function toUiMessage(item, folder) {
deleted: folder === 'Trash',
sourceFolder: folder,
body,
html: content.html,
links,
uid: Number(item.uid),
attachments: content.attachments,
@@ -631,6 +632,7 @@ function mailContent(parsed) {
return {
bodyText,
body,
html: html.slice(0, 100000),
links,
attachments: files.map(file => ({ filename: file.filename || 'attachment', size: file.size || 0 })),
attachment: files[0]?.filename || null,
@@ -1378,6 +1380,7 @@ ipcMain.handle('pgp:decrypt-message', async (_event, input) => {
return {
ok: true,
body: content.body,
html: content.html,
links: content.links,
attachments: content.attachments,
attachment: content.attachment,