node-imap icon indicating copy to clipboard operation
node-imap copied to clipboard

Can not get attachments with name "smime.p7s"

Open StanislavSerdiuk opened this issue 4 years ago • 0 comments

I have the email with the digital signature. In the message body, I can see this part Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s"

But when I tried to use msg.once("attributes", (attrs) => {} there is no attachments like attr.struct[i].disposition.type => ['INLINE', 'ATTACHMENT']. Futhermore attrs.struct is null in msg.once("attributes") handler.

My goal is to read the digital signature and extract the sender and organization's name. Is that even possible?

StanislavSerdiuk avatar Oct 30 '21 16:10 StanislavSerdiuk