Block remote images by default
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user