node-imap
node-imap copied to clipboard
Can not get attachments with name "smime.p7s"
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?