Working with MapiJournal in PST
Contents
[
Hide
]
Adding MapiJournal to PST
Create a New PST File and Add Subfolders showed how to create a PST file and add a subfolder to it. With Aspose.Email you can add MapiJournal to hte Journal subfolder of a PST file that you have created or loaded. Below are the steps to add MapiJournal to a PST:
- Create a MapiJournal object
- Set the MapiJournal properties using a constructor and methods.
- Create a PST using the PersonalStorage.Create() method.
- Create a pre-defined folder (Journals) at the root of the PST file by accessing the root folder and then calling the AddMapiMessageItem() method.
The following code snippet shows you how to create a MapiJournal and then add it to the journal folder of a newly created PST file.
Adding Attachments to MapiJournal
The following code snippet shows you how to add attachments to MapiJournal.