user177138
user177138

Reputation:

python code to convert mail from pst to eml format

Is there any python code to convert outlook pst mails to eml format. Please also suggest for any such code in some other language. Thank you.

Upvotes: 0

Views: 8609

Answers (1)

nosklo
nosklo

Reputation: 223122

import subprocess

def convert_pst_to_mbox(pstfilename, outputfolder):
    subprocess.call(['readpst', '-o', outputfolder, '-r', pstfilename])

Of course, you must install libpst utilities for that to work.

Upvotes: 1

Related Questions