rjohnsondev / java-libpst

A library to read PST files with java, without need for external libraries.
249 stars 122 forks source link

Thousands of emails missed from an OST 2013 #60

Open lfcnassif opened 7 years ago

lfcnassif commented 7 years ago

pffexport tool (from libpff) exports about 30k non deleted emails and attachments from a 2.8 GB 2013 OST while java-libpst extracts about 17k items from the same OST. It contains private data, but I can share privately if you want to dig into and investigate.

lfcnassif commented 7 years ago

Used scanpst to check if the ost was corrupted. It fixed some things, but java-libpst is still missing about 3200 from 13700 emails and 10000 from 17000 attachments.

lfcnassif commented 7 years ago

Looking at the results with more attention, a lot of folders (with lots of emails) are being missed by java-libpst

rjohnsondev commented 7 years ago

that would be great if you don't mind! You could upload it to something like dropbox and email me a link: libpst AT rjohnson.id.au

The biggest challenge for me in implementing fixes is getting decent examples to work with.

lfcnassif commented 7 years ago

Hi Richard, I have sent the link to you.

rjohnsondev commented 7 years ago

Cool, I requested access with the email address for my google account.

lfcnassif commented 7 years ago

Hi Richard, any progress here? Do you need any help?

rjohnsondev commented 7 years ago

Hey, unfortunately not despite best intentions. Contributions are always welcome; with this particular scenario it sounds like this child items table is the incorrect thing to look at, or is too large for a single block thus requiring some additional logic somewhere https://github.com/rjohnsondev/java-libpst/blob/develop/src/main/java/com/pff/PSTFolder.java#L123

rjohnsondev commented 7 years ago

Generally the library will try to build it's own internal tree based on other "parent" identifiers if there is anything wrong with the child-items table: https://github.com/rjohnsondev/java-libpst/blob/304c0ac33fb0b7c120d387c56ea0f3e1c312137c/src/main/java/com/pff/PSTFolder.java#L158

fsicoli commented 6 years ago

It's definitely a serious issue. I'm also waiting until it is fixed to start using java-libpst again.