diff --git a/dev/Mime/Utils.js b/dev/Mime/Utils.js index 70d76ecf8..8d95aad04 100644 --- a/dev/Mime/Utils.js +++ b/dev/Mime/Utils.js @@ -65,7 +65,7 @@ export function MimeToMessage(data, message) } else { message.attachments.push(attachment); } - } else if ('multipart/signed' === type.value) { + } else if ('multipart/signed' === type?.value) { let protocol = type.params.protocol; if ('application/pgp-signature' === protocol) { message.pgpSigned({ @@ -81,7 +81,7 @@ export function MimeToMessage(data, message) detached: true }); } - } else if ('application/pkcs7-mime' === type.value /*&& 'signed-data' === type.params['smime-type']=*/) { + } else if ('application/pkcs7-mime' === type?.value /*&& 'signed-data' === type.params['smime-type']=*/) { message.smimeSigned({ micAlg: type.micalg, bodyPart: part,