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 .msg files.
Name* Email* Message*