Add ANDROID_SECURITY_PLAN.md to project
This commit is contained in:
@@ -35,7 +35,7 @@ function registerMailIpcHandlers(dependencies) {
|
||||
mailOutbox,
|
||||
pgpMail,
|
||||
PgpError,
|
||||
simpleParser,
|
||||
getMailparser,
|
||||
folderPath,
|
||||
sendMailNow,
|
||||
pgpFailure
|
||||
@@ -270,6 +270,7 @@ registerIpcHandler('mail:update-message', async (_event, input) => {
|
||||
|
||||
// Encrypted messages keep their attachments inside the encrypted payload.
|
||||
async function parseForAttachments(source) {
|
||||
const { simpleParser } = await getMailparser();
|
||||
const parsed = await simpleParser(source);
|
||||
const kind = pgpMail.detect(parsed);
|
||||
if (kind !== 'encrypted-mime' && kind !== 'encrypted-inline') return parsed;
|
||||
|
||||
Reference in New Issue
Block a user