public class EmlLoadOptions extends LoadOptions
Allows to specify additional options when loading MailMessage from Eml format.
The following example shows how to convert EML to MSG.
[Java]
// Initialize EmlLoadOptions EmlLoadOptions emlLoadOptions = new EmlLoadOptions(); emlLoadOptions.setPreserveTnefAttachments(true); emlLoadOptions.setPreserveEmbeddedMessageFormat(true); // Initialize MailMessage with EmlLoadOptions try (MailMessage message = MailMessage.load("TestEml.eml", emlLoadOptions)) { // Convert EML to MSG message.save("output.msg", SaveOptions.getDefaultMsg()); }
| Constructor and Description |
|---|
EmlLoadOptions()
Initializes a new instance of this class that can be used to loading MailMessage from Eml format.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getPreserveTnefAttachments()
Controls TNEF attachment loading behaviour.
|
void |
setPreserveTnefAttachments(boolean value)
Controls TNEF attachment loading behaviour.
|
getMessageFormat, getPreferredTextEncoding, getPreserveEmbeddedMessageFormat, getRemoveSignature, setPreferredTextEncoding, setPreserveEmbeddedMessageFormat, setRemoveSignaturepublic EmlLoadOptions()
Initializes a new instance of this class that can be used to loading MailMessage from Eml format.
public final boolean getPreserveTnefAttachments()
Controls TNEF attachment loading behaviour. By default the value is false.
public final void setPreserveTnefAttachments(boolean value)
Controls TNEF attachment loading behaviour. By default the value is false.
Copyright (c) 2008-2024 Aspose Pty Ltd. All Rights Reserved.