Render folder

GroupDocs.Viewer renders messages from all folders (including nested folders) by default. When you need to render items from a specific folder, use setFolder() property of the OutlookOptions class as shown in the example below. Please note that you should use the following convention for naming folders and subfolders to specify it in setFolder() option: {Parent folder name}\\{Sub folder name}. Thus, if you need to render items from Inbox folder just specify setFolder("Inbox"); when you need to render subfolder named Orion that resides in a folder named Urgent that in turn resides in Inbox, set: setFolder("Inbox\\Urgent\\Orion") 

The following code samples show how to use this option for rendering:

    try (Viewer viewer = new Viewer("sample.ost")) {
        HtmlViewOptions viewOptions = HtmlViewOptions.forEmbeddedResources();
        viewOptions.getOutlookOptions().setFolder("Inbox\\SubFolder\\SubFolder2");
        viewer.view(viewOptions);
    }