MsgSaveOptions

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

public class MsgSaveOptions extends SaveOptions

This class allows the user to specify additional settings when saving a MailMessage in the Msg(ASCII) and Msg(Unicode) format.

Constructors

Constructor Description
MsgSaveOptions(MailMessageSaveType saveType) Initializes a new instance of this class that can be used to save a MailMessage in the Msg(ASCII) and Msg(Unicode) format.

Methods

Method Description
getPreserveOriginalDates() Gets or sets a value indicating whether it is necessary to generate new saving and modification dates when saving a message.
setPreserveOriginalDates(boolean value) Gets or sets a value indicating whether it is necessary to generate new saving and modification dates when saving a message.
getPreserveSignature() Set to true, if signature is to be preserved.
setPreserveSignature(boolean value) Set to true, if signature is to be preserved.
getSaveAsTemplate() Set to true, if need to be saved as Outlook File Template(OFT format).
setSaveAsTemplate(boolean value) Set to true, if need to be saved as Outlook File Template(OFT format).

MsgSaveOptions(MailMessageSaveType saveType)

public MsgSaveOptions(MailMessageSaveType saveType)

Initializes a new instance of this class that can be used to save a MailMessage in the Msg(ASCII) and Msg(Unicode) format.

Parameters:

Parameter Type Description
saveType MailMessageSaveType

getPreserveOriginalDates()

public final boolean getPreserveOriginalDates()

Gets or sets a value indicating whether it is necessary to generate new saving and modification dates when saving a message.

Returns: boolean

setPreserveOriginalDates(boolean value)

public final void setPreserveOriginalDates(boolean value)

Gets or sets a value indicating whether it is necessary to generate new saving and modification dates when saving a message.

Parameters:

Parameter Type Description
value boolean

getPreserveSignature()

public final boolean getPreserveSignature()

Set to true, if signature is to be preserved.

Returns: boolean

setPreserveSignature(boolean value)

public final void setPreserveSignature(boolean value)

Set to true, if signature is to be preserved.

Parameters:

Parameter Type Description
value boolean

getSaveAsTemplate()

public final boolean getSaveAsTemplate()

Set to true, if need to be saved as Outlook File Template(OFT format).

Returns: boolean

setSaveAsTemplate(boolean value)

public final void setSaveAsTemplate(boolean value)

Set to true, if need to be saved as Outlook File Template(OFT format).

Parameters:

Parameter Type Description
value boolean