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).
|
int |
getFormat()
Represents outlook message format.
|
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 |
setFormat(int value)
Represents outlook message format.
|
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 int getFormat()
Represents outlook message format.
public void setFormat(int value)
Represents outlook message format.
value
- a int.public boolean getPreserveSignature()
Set to true, if signature is to be preserved.
public void setPreserveSignature(boolean value)
Set to true, if signature is to be preserved.
value
- a boolean.public boolean getUseBodyCompression()
Set to true, if need RTF body compression.
public void setUseBodyCompression(boolean value)
Set to true, if need RTF body compression.
value
- a boolean.public boolean getPreserveOriginalDates()
Gets or sets a value indicating whether it is necessary to generate new saving and modification dates when converting a message.
public 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.
value
- a boolean.public boolean getPreserveOriginalAddresses()
Gets or sets a value indicating whether it is necessary to keep original value of mail addresses (without validation).
public void setPreserveOriginalAddresses(boolean value)
Gets or sets a value indicating whether it is necessary to keep original value of mail addresses (without validation).
value
- a boolean.public static MapiConversionOptions getASCIIFormat()
Returns MapiConversionOptions with OutlookMessageFormat is ASCII(PreserveSignature is False, UseBodyCompression is False).
MapiConversionOptions
object.public static MapiConversionOptions getUnicodeFormat()
Returns MapiConversionOptions with OutlookMessageFormat is Unicode(PreserveSignature is False, UseBodyCompression is False).
MapiConversionOptions
object.Copyright (c) 2008-2016 Aspose Pty Ltd. All Rights Reserved.