public class MailStorageOptions extends Object
The MailStorageOptions class encapsulates various settings and parameters that can be used to control the rendering of Mail storage data files (such as Lotus Notes or MBox) in the GroupDocs.Viewer component.
For details, see the documentation.
Example usage:
MailStorageOptions options = new MailStorageOptions();
options.setAddressFilter("@gmail.com");
options.setMaxItems(10);
final HtmlViewOptions htmlViewOptions = HtmlViewOptions.forEmbeddedResources();
htmlViewOptions.setMailStorageOptions(options);
try (Viewer viewer = new Viewer("mail.msg")) {
viewer.view(htmlViewOptions);
// Use the viewer object for further operations
}
Viewer| Constructor and Description |
|---|
MailStorageOptions() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAddressFilter()
Gets the email address used to filter messages by sender or recipient.
|
int |
getMaxItems()
Gets the maximum number of messages or items to render.
|
String |
getTextFilter()
Gets the keywords used to filter messages.
|
void |
setAddressFilter(String addressFilter)
Sets the email address used to filter messages by sender or recipient.
|
void |
setMaxItems(int maxItems)
Sets the maximum number of messages or items to render.
|
void |
setTextFilter(String textFilter)
Sets the keywords used to filter messages.
|
public String getAddressFilter()
Gets the email address used to filter messages by sender or recipient.
Use this property to render all messages that contain specific text in the sender’s or recipient’s address. For code example, see the documentation.
public int getMaxItems()
Gets the maximum number of messages or items to render.
Lotus Notes data files can be large, and retrieving all messages can take significant time. This setting limits the maximum number of messages or items that are rendered.
Note: The default value is 0, which means all messages will be rendered. For code example, see the documentation.
public String getTextFilter()
Gets the keywords used to filter messages.
Use this property to render all messages that contain specific text in the subject or body. For code example, see the documentation.
public void setAddressFilter(String addressFilter)
Sets the email address used to filter messages by sender or recipient.
Use this property to render all messages that contain specific text in the sender’s or recipient’s address. For code example, see the documentation.
addressFilter - The email address used for filtering messages.public void setMaxItems(int maxItems)
Sets the maximum number of messages or items to render.
Lotus Notes data files can be large, and retrieving all messages can take significant time. This setting limits the maximum number of messages or items that are rendered.
Note: The default value is 0, which means all messages will be rendered. For code example, see the documentation.
maxItems - The maximum number of messages or items to render.public void setTextFilter(String textFilter)
Sets the keywords used to filter messages.
Use this property to render all messages that contain specific text in the subject or body. For code example, see the documentation.
textFilter - The keywords used for filtering messages.Copyright © 2024. All rights reserved.