public class MapiConversionOptions extends Object
This class allows the user to specify additional options when converting from MailMessage to MapiMessage.
Constructor and Description |
---|
MapiConversionOptions()
Initializes a new instance of the
MapiConversionOptions class. |
MapiConversionOptions(int format)
Initializes a new instance of the
MapiConversionOptions class with specified OutlookMessageFormat. |
Modifier and Type | Method and Description |
---|---|
static MapiConversionOptions |
getASCIIFormat()
Returns MapiConversionOptions with OutlookMessageFormat is ASCII(PreserveSignature is False, UseBodyCompression is False).
|
ConversionProgressEventHandler |
getCustomProgressHandler() |
boolean |
getForcedRtfBodyForAppointment()
Gets or sets a value indicating whether it is necessary to use forced RTF body for an appointment.
|
int |
getFormat()
Represents outlook message format.
|
boolean |
getPreserveEmbeddedMessageFormat()
Gets or sets a value indicating whether it is necessary to preserve
conversion .eml attachment to .msg attachment.
|
boolean |
getPreserveOriginalAddresses()
Gets or sets a value indicating whether it is necessary to keep
original value of mail addresses (without validation).
|
boolean |
getPreserveOriginalDates()
Gets or sets a value indicating whether it is necessary to generate
new saving and modification dates when converting a message.
|
boolean |
getPreserveSignature()
Set to true, if signature is to be preserved.
|
static MapiConversionOptions |
getUnicodeFormat()
Returns MapiConversionOptions with OutlookMessageFormat is Unicode(PreserveSignature is False, UseBodyCompression is False).
|
boolean |
getUseBodyCompression()
Set to true, if need RTF body compression.
|
void |
setCustomProgressHandler(ConversionProgressEventHandler value) |
void |
setForcedRtfBodyForAppointment(boolean value)
Gets or sets a value indicating whether it is necessary to use forced RTF body for an appointment.
|
void |
setFormat(int value)
Represents outlook message format.
|
void |
setPreserveEmbeddedMessageFormat(boolean value)
Gets or sets a value indicating whether it is necessary to preserve
conversion .eml attachment to .msg attachment.
|
void |
setPreserveOriginalAddresses(boolean value)
Gets or sets a value indicating whether it is necessary to keep
original value of mail addresses (without validation).
|
void |
setPreserveOriginalDates(boolean value)
Gets or sets a value indicating whether it is necessary to generate
new saving and modification dates when converting a message.
|
void |
setPreserveSignature(boolean value)
Set to true, if signature is to be preserved.
|
void |
setUseBodyCompression(boolean value)
Set to true, if need RTF body compression.
|
public MapiConversionOptions()
Initializes a new instance of the MapiConversionOptions
class.
public MapiConversionOptions(int format)
Initializes a new instance of the MapiConversionOptions
class with specified OutlookMessageFormat.
format
- Format of MapiMessage OutlookMessageFormat
.public final ConversionProgressEventHandler getCustomProgressHandler()
public final void setCustomProgressHandler(ConversionProgressEventHandler value)
public final int getFormat()
Represents outlook message format.
public final void setFormat(int value)
Represents outlook message format.
public final boolean getPreserveSignature()
Set to true, if signature is to be preserved.
public final void setPreserveSignature(boolean value)
Set to true, if signature is to be preserved.
public final boolean getUseBodyCompression()
Set to true, if need RTF body compression.
public final void setUseBodyCompression(boolean value)
Set to true, if need RTF body compression.
public final boolean getPreserveOriginalDates()
Gets or sets a value indicating whether it is necessary to generate new saving and modification dates when converting a message.
public final void setPreserveOriginalDates(boolean value)
Gets or sets a value indicating whether it is necessary to generate new saving and modification dates when converting a message.
public final boolean getPreserveOriginalAddresses()
Gets or sets a value indicating whether it is necessary to keep original value of mail addresses (without validation).
public final void setPreserveOriginalAddresses(boolean value)
Gets or sets a value indicating whether it is necessary to keep original value of mail addresses (without validation).
public final boolean getPreserveEmbeddedMessageFormat()
Gets or sets a value indicating whether it is necessary to preserve conversion .eml attachment to .msg attachment.
public final void setPreserveEmbeddedMessageFormat(boolean value)
Gets or sets a value indicating whether it is necessary to preserve conversion .eml attachment to .msg attachment.
public static MapiConversionOptions getASCIIFormat()
Returns MapiConversionOptions with OutlookMessageFormat is ASCII(PreserveSignature is False, UseBodyCompression is False).
public static MapiConversionOptions getUnicodeFormat()
Returns MapiConversionOptions with OutlookMessageFormat is Unicode(PreserveSignature is False, UseBodyCompression is False).
public final boolean getForcedRtfBodyForAppointment()
Gets or sets a value indicating whether it is necessary to use forced RTF body for an appointment. Default value is true.
public final void setForcedRtfBodyForAppointment(boolean value)
Gets or sets a value indicating whether it is necessary to use forced RTF body for an appointment. Default value is true.