libyal / libpff

Library and tools to access the Personal Folder File (PFF) and the Offline Folder File (OFF) format
GNU Lesser General Public License v3.0
286 stars 74 forks source link

Return more details about attachments #81

Closed wyllys66 closed 4 years ago

wyllys66 commented 4 years ago

It would be very useful to be able to get more details about attachments (if available). Specifically, the original filename of the attachment and content-disposition (inline vs attached).

joachimmetz commented 4 years ago

In what context, do you mean from pffexport?

wyllys66 commented 4 years ago

Mostly interested in the python bindings. I'd like a python method or property to return the original filename of the attachment if it was found.

wyllys66 commented 4 years ago

LIBPFF_ENTRY_TYPE_ATTACHMENT_FILENAME_SHORT and LIBPFF_ENTRY_TYPE_ATTACHMENT_FILENAME_LONG are defined, but not used anywhere. I would think they could be used in libpff_attachment.c when parsing the data to capture the filename.

wyllys66 commented 4 years ago

It looks like someone submitted a pull-request for this feature last year but never followed up after the tests failed:

https://github.com/libyal/libpff/pull/69

Perhaps someone could pick this up and complete the merge?

joachimmetz commented 4 years ago

Perhaps someone could pick this up and complete the merge?

I'll have a look when time permits. Closing issue