tags:

views:

577

answers:

1

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.

+1  A: 
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.

nosklo
is mbox format same as eml format?
pap
@pap, no: http://en.wikipedia.org/wiki/E-mail#Filename_extensions, but you can convert: http://www.google.com/search?q=mbox+to+eml
John Paulett