MsgLoadOptions

Inheritance: java.lang.Object, com.aspose.email.LoadOptions

public class MsgLoadOptions extends LoadOptions

Allows to specify additional options when loading MailMessage from Msg format.

Constructors

ConstructorDescription
MsgLoadOptions()Initializes a new instance of this class that can be used to loading MailMessage from Msg format.

Methods

MethodDescription
equals(Object arg0)
getClass()
getDecodeSignedContent()Gets or sets a value indicating whether signed message will be decoded.
getKeepOriginalEmailAddresses()Gets or sets a value indicating whether need keep original email address.
getLeaveOpen()Gets or sets a value indicating whether to keep the underlying stream open after load.
getMessageFormat()Represents the mail message format.It can be in eml,msg or mhtml format.
getPreferredTextEncoding()Gets or sets preferred encoding for message.
getPreserveEmbeddedMessageFormat()Gets or sets a value indicating whether it is necessary to preserve format of embedded message at loading.
getPreserveRtfContent()Gets or sets a value indicating whether need keep rtf body in MailMessage.
getPreserveTnefAttachments()Controls loading TNEF attachment behaviour.
getRemoveSignature()Gets or sets a value indicating whether signature will be removed while loading.
getTimeout()Limits the time in milliseconds of formatting message while converting.
hashCode()
notify()
notifyAll()
setDecodeSignedContent(boolean value)Gets or sets a value indicating whether signed message will be decoded.
setKeepOriginalEmailAddresses(boolean value)Gets or sets a value indicating whether need keep original email address.
setLeaveOpen(boolean value)Gets or sets a value indicating whether to keep the underlying stream open after load.
setPreferredTextEncoding(Charset value)Gets or sets preferred encoding for message.
setPreserveEmbeddedMessageFormat(boolean value)Gets or sets a value indicating whether it is necessary to preserve format of embedded message at loading.
setPreserveRtfContent(boolean value)Gets or sets a value indicating whether need keep rtf body in MailMessage.
setPreserveTnefAttachments(boolean value)Controls loading TNEF attachment behaviour.
setRemoveSignature(boolean value)Gets or sets a value indicating whether signature will be removed while loading.
setTimeout(int value)Limits the time in milliseconds of formatting message while converting.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

MsgLoadOptions()

public MsgLoadOptions()

Initializes a new instance of this class that can be used to loading MailMessage from Msg format.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getDecodeSignedContent()

public final boolean getDecodeSignedContent()

Gets or sets a value indicating whether signed message will be decoded.

Value: true if signed message will be decoded; otherwise, false .

Returns: boolean

getKeepOriginalEmailAddresses()

public final boolean getKeepOriginalEmailAddresses()

Gets or sets a value indicating whether need keep original email address.

Returns: boolean

getLeaveOpen()

public final boolean getLeaveOpen()

Gets or sets a value indicating whether to keep the underlying stream open after load. Default value is false.

Returns: boolean

getMessageFormat()

public final MessageFormat getMessageFormat()

Represents the mail message format.It can be in eml,msg or mhtml format. The default value is Eml.

Returns: MessageFormat

getPreferredTextEncoding()

public final Charset getPreferredTextEncoding()

Gets or sets preferred encoding for message. Forcibly sets the preferred encoding for message subject and body. The default value is null.

Returns: java.nio.charset.Charset

getPreserveEmbeddedMessageFormat()

public final boolean getPreserveEmbeddedMessageFormat()

Gets or sets a value indicating whether it is necessary to preserve format of embedded message at loading. By default the value is false.


Generally, embedded messages have the same format (EML or MSG) as the underlying message. By default, when converting from EML to MSG and vice versa, embedded messages are also converted to the target format. Setting the property to true preserves the original format of embedded messages.

Returns: boolean

getPreserveRtfContent()

public final boolean getPreserveRtfContent()

Gets or sets a value indicating whether need keep rtf body in MailMessage.

Returns: boolean

getPreserveTnefAttachments()

public final boolean getPreserveTnefAttachments()

Controls loading TNEF attachment behaviour. By default the value is false.


If a message contains a TNEF attachment (winmail.dat), then this property defines whether files from TNEF will be decoded and extracted. The winmail.dat attachment remains as it is if the property value is true.

Returns: boolean

getRemoveSignature()

public final boolean getRemoveSignature()

Gets or sets a value indicating whether signature will be removed while loading.

Value: true if will be removed; otherwise, false .

Returns: boolean

getTimeout()

public final int getTimeout()

Limits the time in milliseconds of formatting message while converting. Default value 3 sec.

Returns: int

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setDecodeSignedContent(boolean value)

public final void setDecodeSignedContent(boolean value)

Gets or sets a value indicating whether signed message will be decoded.

Value: true if signed message will be decoded; otherwise, false .

Parameters:

ParameterTypeDescription
valueboolean

setKeepOriginalEmailAddresses(boolean value)

public final void setKeepOriginalEmailAddresses(boolean value)

Gets or sets a value indicating whether need keep original email address.

Parameters:

ParameterTypeDescription
valueboolean

setLeaveOpen(boolean value)

public final void setLeaveOpen(boolean value)

Gets or sets a value indicating whether to keep the underlying stream open after load. Default value is false.

Parameters:

ParameterTypeDescription
valueboolean

setPreferredTextEncoding(Charset value)

public final void setPreferredTextEncoding(Charset value)

Gets or sets preferred encoding for message. Forcibly sets the preferred encoding for message subject and body. The default value is null.

Parameters:

ParameterTypeDescription
valuejava.nio.charset.Charset

setPreserveEmbeddedMessageFormat(boolean value)

public final void setPreserveEmbeddedMessageFormat(boolean value)

Gets or sets a value indicating whether it is necessary to preserve format of embedded message at loading. By default the value is false.


Generally, embedded messages have the same format (EML or MSG) as the underlying message. By default, when converting from EML to MSG and vice versa, embedded messages are also converted to the target format. Setting the property to true preserves the original format of embedded messages.

Parameters:

ParameterTypeDescription
valueboolean

setPreserveRtfContent(boolean value)

public final void setPreserveRtfContent(boolean value)

Gets or sets a value indicating whether need keep rtf body in MailMessage.

Parameters:

ParameterTypeDescription
valueboolean

setPreserveTnefAttachments(boolean value)

public final void setPreserveTnefAttachments(boolean value)

Controls loading TNEF attachment behaviour. By default the value is false.


If a message contains a TNEF attachment (winmail.dat), then this property defines whether files from TNEF will be decoded and extracted. The winmail.dat attachment remains as it is if the property value is true.

Parameters:

ParameterTypeDescription
valueboolean

setRemoveSignature(boolean value)

public final void setRemoveSignature(boolean value)

Gets or sets a value indicating whether signature will be removed while loading.

Value: true if will be removed; otherwise, false .

Parameters:

ParameterTypeDescription
valueboolean

setTimeout(int value)

public final void setTimeout(int value)

Limits the time in milliseconds of formatting message while converting. Default value 3 sec.

Parameters:

ParameterTypeDescription
valueint

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int