Summary: | HSMF fails to extract dates from certain Outlook 2007 messages (.msg) | ||
---|---|---|---|
Product: | POI | Reporter: | joewiz |
Component: | HSMF | Assignee: | POI Developers List <dev> |
Status: | NEW --- | ||
Severity: | normal | CC: | mcroci |
Priority: | P2 | ||
Version: | 3.8-FINAL | ||
Target Milestone: | --- | ||
Hardware: | Macintosh | ||
OS: | All | ||
Attachments: |
Two sample Outlook 2007 messages, one whose date POI HSMF fails to recognize, and one whose date POI HSMF successfully recognizes
First version of patch for bug 53784 |
Description
joewiz
2012-08-27 21:44:52 UTC
There has been some discussions about this on the mailing list. We currently support decoding variable length properties, but not fixed length ones which get stored differently. There's a little bit of code added quite recently towards supporting fixed length ones, but more work is needed on it. The thread Nick referred to is http://markmail.org/message/cm5fkzosjlwelz2c. Also, for additional context, here is the earlier thread on the Tika list: http://markmail.org/message/vtweepcegqwjuxb4. Created attachment 29407 [details] First version of patch for bug 53784 Attached is a first version of patch for this issue. The date is thus correctly extracted for the messages mentioned. I also made a unit test for those two messages. The flags for client submit time property are not extracted, as would imply modification of another class. If they are necessary now, I can modify that class. The fix suggested will need some work, as it's a little too specific for the one property type. Thanks for the start though! I've committed a partial fix for this in r1398241. I've had to disable part of your test though, as we're now getting a date, but not quite the correct one Really, we need to finish the property value decoding, add some unit tests for that part, and then re-visit the disabled tests to verify what really should be happening. Once that's done, we can likely do a bit of refactoring, and then expose more of the properties on MAPIMessage! |