How to filter Lotus Notes 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.setTextFilter(…) as Microsoft  the API will render all messages that contain the text Microsoft in the message’s subject or body. Whereas, setting lotusNotesOptions.setAddressFilter(…) as 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.

    try (Viewer viewer = new Viewer("sample.nsf")) {
        HtmlViewOptions viewOptions = HtmlViewOptions.forEmbeddedResources();
        HtmlViewOptions options = HtmlViewOptions.forEmbeddedResources(pageFilePathFormat);
        options.getLotusNotesOptions().setTextFilter("April 2015");

More resources

GitHub Examples

You may easily run the code above and see the feature in action in our GitHub examples:

Free Online App

Along with full-featured Java library we provide simple but powerful free Apps. You are welcome to view Word, PDF, Excel, PowerPoint documents with free to use online GroupDocs Viewer App.