Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sosnovsky committed Oct 16, 2024
1 parent 78db7df commit 5f40ea3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions extension/js/common/api/email-provider/gmail/gmail-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ export class GmailParser {
if ('parts' in msgOrPayloadOrPart) {
const contentType = msgOrPayloadOrPart.headers?.find(header => header.name.toLowerCase() === 'content-type');
const parts = msgOrPayloadOrPart.parts ?? [];
const containsMultipartAlternative = parts.find(part => part.mimeType === 'multipart/alternative');
const hasMultipartAlternativePart = parts.find(part => part.mimeType === 'multipart/alternative');
// ignore plain inline attachments
if (!contentType?.value.startsWith('multipart/related') || !containsMultipartAlternative) {
if (!contentType?.value.startsWith('multipart/related') || !hasMultipartAlternativePart) {
// are we dealing with a PGP/MIME encrypted message?
const pgpEncrypted = Boolean(
parts.length === 2 &&
Expand Down
32 changes: 16 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5f40ea3

Please sign in to comment.