I am trying to parse email raw data and get the attachment out of it. I am using the module mailparser to achieve the same. I am getting the results as below when I parse the email and print mail.attachments. I had a .jpg image in attachment but I am unable to get it. Its showing some winmail.dat file. Please do ask for any more info if required.
[ { type: 'attachment',
content: <Buffer 78 9f 3e 22 8e 27 01 06 90 08 00 04 00 00 00 00 00 01 00 01 00 01 07 90 06 00 08 00 00 00 e4 04 00 00 00 00 00 00 e8 00 01 09 80 01 00 21 00 00 00 32 ... >,
contentType: 'application/ms-tnef',
release: null,
contentDisposition: 'attachment',
filename: 'winmail.dat',
headers:
Map {
'content-disposition' => [Object],
'content-transfer-encoding' => 'base64',
'content-type' => [Object] },
checksum: '8be1bb0155843144501214e22af6890d',
size: 66680 } ]
Thanks in advance.
via Sagar Gopale
No comments:
Post a Comment