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
289 stars 74 forks source link

Extract .msg files from .pst #53

Closed denisb411 closed 6 years ago

denisb411 commented 6 years ago

I successfully extracted the messages from my .pst but I wanted to keep the original format of the message (.msg). How can I keep the .msg format from the .pst and save to disk? The help(pypff.message) doesn't expecify anything about.

import pypff
pst_file = './backup.pst'
opst = pypff.open(pst_file)
root = opst.get_root_folder()

for folder in root.sub_folders:
    for message in folder.sub_messages:
        print(message.subject)
joachimmetz commented 6 years ago

Msg is not the same format. Have a look at the msdn documentation what office msg files are.

joachimmetz commented 6 years ago

Assuming questions have been answered