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

Extract attachment #104

Closed Deeborg closed 3 years ago

Deeborg commented 3 years ago

Hi, Could you please let me know if it is possible to extract attachments using get_attachment and save it on disk or write them to a database say MongoDB?

joachimmetz commented 3 years ago

@Deeborg in theory yes. If you're looking for a more specific answer you'll have to provide more context.

Deeborg commented 3 years ago

I am creating a database of all the mails with data extracted using pypff. However, I am unable to get the attachments as files to store the same in MongoDB. For example, I would like to get pdf attachment from mail as file and store the same in MongoDB or export those files to disk separately.

joachimmetz commented 3 years ago

in that case you'll have to wait until the Python bindings (pypff) are completed as per https://github.com/libyal/libpff/issues/2

Deeborg commented 3 years ago

Got it. Thanks!!