NikhilMIT2013 / java-libpst

Automatically exported from code.google.com/p/java-libpst
0 stars 0 forks source link

Fails to parse recipients when encountering newline #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When parsing a PST file that contains messages that have recipients that are on 
different lines, only the first line of recipients is parsed.

I found this issue when comparing readpst's output to that of java-libpst. An 
example PST file is attached from the Enron Data Set.

Inside the Inbox folder of this data, the fourth message titled "Online Trading 
Simulation" has over a hundred of recipients, but java-libpst only shows four.

Original issue reported on code.google.com by jmackt...@gmail.com on 30 Mar 2011 at 4:53

Attachments:

GoogleCodeExporter commented 8 years ago
interesting! will check it out.

Original comment by rjohnson...@gmail.com on 31 Mar 2011 at 8:57

GoogleCodeExporter commented 8 years ago
Okay, so I loaded that PST up in outlook 2010 and from what I can see outlook 
says there are only 4 recipients against that message, so it appears that 
libpst is reflecting what outlook sees.

_HOWEVER_

If you have a look at getTransportMessageHeaders() you will see them all there 
clear as day.

I suspect that something went awry when this msg object was created by outlook 
/ exmerge and the recipients table was not correctly created (probably due to 
the multiline stuff you pointed out).

It might be better to parse the headers for the message yourself rather than 
rely on the PST's version of events...

Let me know if you have any questions about this!

Richard

Original comment by rjohnson...@gmail.com on 2 Apr 2011 at 2:24

GoogleCodeExporter commented 8 years ago
Yep, this method worked out for me. I am parsing the getTransportMessageHeaders 
output myself and that fixes the problem. 

Thanks for the suggestion,
Jeremy

Original comment by jmackt...@gmail.com on 4 Apr 2011 at 7:52