Filter database messages

Lotus Notes allows filtering messages inside folders by some text value from message content and by part of the sender’s or recipient’s address.

Filter NSF messages

GroupDocs.Viewer also allows filtering the rendered messages using the following filters:

As an example, when setting LotusNotesOptions.TextFilteras ‘Microsoft’ the API will render all messages that contain the text ‘Microsoft’ in the message’s subject or body. Whereas, setting LotusNotesOptions.AddressFilteras ‘susan’ will filter messages that contain ‘susan’ as a part of the sender’s or recipient’s address. The following code samples show how to filter the messages.

using (Viewer viewer = new Viewer("sample.nsf"))
{
    HtmlViewOptions viewOptions = HtmlViewOptions.ForEmbeddedResources();
    HtmlViewOptions options = HtmlViewOptions.ForEmbeddedResources(pageFilePathFormat);
    options.LotusNotesOptions.TextFilter = "April 2015";
    options.LotusNotesOptions.AddressFilter = "test@test.com";
    viewer.View(viewOptions);
}

© Aspose Pty Ltd 2001-2022. All Rights Reserved.