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 |
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 |
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 int getFormat()
Represents outlook message format.
public void setFormat(int value)
Represents outlook message format.
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.
public boolean getUseBodyCompression()
Set to true, if need RTF body compression.
public void setUseBodyCompression(boolean value)
Set to true, if need RTF body compression.
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.
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).
public boolean getPreserveEmbeddedMessageFormat()
Gets or sets a value indicating whether it is necessary to preserve conversion .eml attachment to .msg attachment.
public 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).
Copyright (c) 2008-2017 Aspose Pty Ltd. All Rights Reserved.