epfromer / pst-extractor

Extract objects from MS Outlook/Exchange PST files
59 stars 18 forks source link

email body is empty #25

Closed RezaRahmati closed 2 years ago

RezaRahmati commented 2 years ago

Hi I tried the library, I am able to retrieve the email subject and from, but for all emails email.body or email.bodyHTML or email.bodyPrefix is empty,

Also I am able to download some attachments but almost half of them has null value in .allData, while I am able to download the attachments and see body of emails using Kernel Outlook PST Viewer.

Wondering if there is a way to share the pst file privately with you, so you can help us to fix the issue?

epfromer commented 2 years ago

Hi Reza, sure, I can look into that although it may take me a week or two do get to it. My email is epfromer at gmail.com.

RezaRahmati commented 2 years ago

@epfromer Thanks for fast response, I shared the pst file via google drive.

For checking issues none of emails in Inbox folder has body For attachments all these attachemnts has null data while I am able to open attachment via Kernel Outlook PST Viewer

image

epfromer commented 2 years ago

@RezaRahmati I've had some time to look into this problem, but I'm not sure I can reproduce your problem. If you look in the example project, specifically the test.ts script, you can see in doSaveToFS() the logic to walk the attachments and extract each into a file. I ran this script on your supplied PST and was able extract several attachments each which had content. Specifically, for the 'Sample data' message highlighted above, both 2147844-1-MB-Test.xlsx and 2147844-10-MB-Test.docx have data.

epfromer commented 2 years ago

Version v1.9.0 has better handling of bodyHTML