The following example shows you how to open an existing PST file in read/write mode, add folders and items, and save the changes back to the same file. New items are built from a com.independentsoft.msg.Message and wrapped in a com.independentsoft.pst.Item.