OutlookOptions class

OutlookOptions class

The class contains options for rendering Outlook data files.

For details, see the documentation.

The OutlookOptions type exposes the following members:

Constructors

Constructor Description
init

Properties

Property Description
address_filter The email address used to filter messages by sender or recipient.
folder The name of the folder (e.g. Inbox, Sent Item or Deleted Items) to render.
max_items_in_folder The maximum number of messages or items that can be rendered from one folder.
text_filter The keywords used to filter messages.

Example

from groupdocs.viewer import Viewer
from groupdocs.viewer.options import HtmlViewOptions

def render_outlook_with_max_items():
    # Load Outlook data file
    with Viewer("sample.pst") as viewer:
        # Create an HTML view with embedded resources.
        view_options = HtmlViewOptions.for_embedded_resources(
            "render_outlook_with_max_items/outlook_with_max_items.html"
        )
        # Limit the number of items rendered per folder.
        view_options.outlook_options.max_items_in_folder = 30
        viewer.view(view_options)

if __name__ == "__main__":
    render_outlook_with_max_items()

See Also