MapiConversionOptions

Inheritance: java.lang.Object

public class MapiConversionOptions

This class allows the user to specify additional options when converting from MailMessage to MapiMessage.

Constructors

Constructor Description
MapiConversionOptions() Initializes a new instance of the MapiConversionOptions class.
MapiConversionOptions(int format) Initializes a new instance of the MapiConversionOptions class with specified OutlookMessageFormat.

Methods

Method Description
getCustomProgressHandler()
setCustomProgressHandler(ConversionProgressEventHandler value)
getFormat() Represents outlook message format.
setFormat(int value) Represents outlook message format.
getPreserveSignature() Set to true, if signature is to be preserved.
setPreserveSignature(boolean value) Set to true, if signature is to be preserved.
getUseBodyCompression() Set to true, if need RTF body compression.
setUseBodyCompression(boolean value) Set to true, if need RTF body compression.
getPreserveOriginalDates() Gets or sets a value indicating whether it is necessary to generate new saving and modification dates when converting a message.
setPreserveOriginalDates(boolean value) Gets or sets a value indicating whether it is necessary to generate new saving and modification dates when converting a message.
getPreserveEmptyDates() Gets or sets a value indicating whether it is necessary to keep empty dates when converting a message.
setPreserveEmptyDates(boolean value) Gets or sets a value indicating whether it is necessary to keep empty dates when converting a message.
getPreserveOriginalAddresses() Gets or sets a value indicating whether it is necessary to keep original value of mail addresses (without validation).
setPreserveOriginalAddresses(boolean value) Gets or sets a value indicating whether it is necessary to keep original value of mail addresses (without validation).
getPreserveEmbeddedMessageFormat() Gets or sets a value indicating whether it is necessary to preserve conversion .eml attachment to .msg attachment.
setPreserveEmbeddedMessageFormat(boolean value) Gets or sets a value indicating whether it is necessary to preserve conversion .eml attachment to .msg attachment.
getASCIIFormat() Returns MapiConversionOptions with OutlookMessageFormat is ASCII(PreserveSignature is False, UseBodyCompression is False).
getUnicodeFormat() Returns MapiConversionOptions with OutlookMessageFormat is Unicode(PreserveSignature is False, UseBodyCompression is False).
getForcedRtfBodyForAppointment() Gets or sets a value indicating whether it is necessary to use forced RTF body for an appointment.
setForcedRtfBodyForAppointment(boolean value) Gets or sets a value indicating whether it is necessary to use forced RTF body for an appointment.

MapiConversionOptions()

public MapiConversionOptions()

Initializes a new instance of the MapiConversionOptions class.

MapiConversionOptions(int format)

public MapiConversionOptions(int format)

Initializes a new instance of the MapiConversionOptions class with specified OutlookMessageFormat.

Parameters:

Parameter Type Description
format int Format of MapiMessage OutlookMessageFormat.

getCustomProgressHandler()

public final ConversionProgressEventHandler getCustomProgressHandler()

Returns: ConversionProgressEventHandler

setCustomProgressHandler(ConversionProgressEventHandler value)

public final void setCustomProgressHandler(ConversionProgressEventHandler value)

Parameters:

Parameter Type Description
value ConversionProgressEventHandler

getFormat()

public final int getFormat()

Represents outlook message format.

Returns: int

setFormat(int value)

public final void setFormat(int value)

Represents outlook message format.

Parameters:

Parameter Type Description
value int

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

getUseBodyCompression()

public final boolean getUseBodyCompression()

Set to true, if need RTF body compression.

Returns: boolean

setUseBodyCompression(boolean value)

public final void setUseBodyCompression(boolean value)

Set to true, if need RTF body compression.

Parameters:

Parameter Type Description
value boolean

getPreserveOriginalDates()

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.

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 converting a message.

Parameters:

Parameter Type Description
value boolean

getPreserveEmptyDates()

public final boolean getPreserveEmptyDates()

Gets or sets a value indicating whether it is necessary to keep empty dates when converting a message.

Returns: boolean

setPreserveEmptyDates(boolean value)

public final void setPreserveEmptyDates(boolean value)

Gets or sets a value indicating whether it is necessary to keep empty dates when converting a message.

Parameters:

Parameter Type Description
value boolean

getPreserveOriginalAddresses()

public final boolean getPreserveOriginalAddresses()

Gets or sets a value indicating whether it is necessary to keep original value of mail addresses (without validation).

Returns: boolean

setPreserveOriginalAddresses(boolean value)

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).

Parameters:

Parameter Type Description
value boolean

getPreserveEmbeddedMessageFormat()

public final boolean getPreserveEmbeddedMessageFormat()

Gets or sets a value indicating whether it is necessary to preserve conversion .eml attachment to .msg attachment.

Returns: boolean

setPreserveEmbeddedMessageFormat(boolean value)

public final void setPreserveEmbeddedMessageFormat(boolean value)

Gets or sets a value indicating whether it is necessary to preserve conversion .eml attachment to .msg attachment.

Parameters:

Parameter Type Description
value boolean

getASCIIFormat()

public static MapiConversionOptions getASCIIFormat()

Returns MapiConversionOptions with OutlookMessageFormat is ASCII(PreserveSignature is False, UseBodyCompression is False).

Returns: MapiConversionOptions

getUnicodeFormat()

public static MapiConversionOptions getUnicodeFormat()

Returns MapiConversionOptions with OutlookMessageFormat is Unicode(PreserveSignature is False, UseBodyCompression is False).

Returns: MapiConversionOptions

getForcedRtfBodyForAppointment()

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.

Returns: boolean

setForcedRtfBodyForAppointment(boolean value)

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.

Parameters:

Parameter Type Description
value boolean