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 EML format of
embedded message at converting to MapiMessage.
|
boolean |
getPreserveEmptyDates()
Gets or sets a value indicating whether it is necessary to keep empty
dates when converting a message.
|
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()
Deprecated.
Now the signature is preserved by default.This property is obsolete, not used in code and will be removed soon. To remove signature use MapiConversionOptions.RemoveSignature instead.
|
boolean |
getRemoveSignature()
Gets or sets a value indicating whether signature will be removed while converting.
|
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 EML format of
embedded message at converting to MapiMessage.
|
void |
setPreserveEmptyDates(boolean value)
Gets or sets a value indicating whether it is necessary to keep empty
dates when converting a message.
|
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)
Deprecated.
Now the signature is preserved by default.This property is obsolete, not used in code and will be removed soon. To remove signature use MapiConversionOptions.RemoveSignature instead.
|
void |
setRemoveSignature(boolean value)
Gets or sets a value indicating whether signature will be removed while converting.
|
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.
@Deprecated public final boolean getPreserveSignature()
Set to true, if signature is to be preserved.
@Deprecated public final void setPreserveSignature(boolean value)
Set to true, if signature is to be preserved.
public final boolean getRemoveSignature()
Gets or sets a value indicating whether signature will be removed while converting.
Value:true if will be removed; otherwise, false.public final void setRemoveSignature(boolean value)
Gets or sets a value indicating whether signature will be removed while converting.
Value:true if will be removed; otherwise, false.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 getPreserveEmptyDates()
Gets or sets a value indicating whether it is necessary to keep empty dates when converting a message.
public final void setPreserveEmptyDates(boolean value)
Gets or sets a value indicating whether it is necessary to keep empty 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 EML format of embedded message at converting to MapiMessage. By default the value is false.
public final void setPreserveEmbeddedMessageFormat(boolean value)
Gets or sets a value indicating whether it is necessary to preserve EML format of embedded message at converting to MapiMessage. By default the value is false.
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.
Copyright (c) 2008-2024 Aspose Pty Ltd. All Rights Reserved.