JPST > Tutorial > Export to MIME messages (.eml files)

The following example shows you how to export entire .pst file. It creates folder structure in local file system same as the .pst file folder structure and saves all items as .eml files.