Aspose::Email::Mapi::MailConversionOptions Class Reference

Specify additional options when converting from MapiMessage to MailMessage. More...

Inherits Object.

Public Member Functions

bool get_ConvertAsTnef () const
 Set to true to import the MapiMessage information into a MailMessage object with MapiMessage as TNEF attachment. More...
 
void set_ConvertAsTnef (bool value)
 Set to true to import the MapiMessage information into a MailMessage object with MapiMessage as TNEF attachment. More...
 
bool get_PreserveEmbeddedMessageFormat () const
 Gets a value indicating whether it is necessary to preserve MSG format of embedded message at converting to MailMessage. By default the value is false. More...
 
void set_PreserveEmbeddedMessageFormat (bool value)
 Sets a value indicating whether it is necessary to preserve MSG format of embedded message at converting to MailMessage. By default the value is false. More...
 
bool get_KeepOriginalEmailAddresses () const
 Gets a value indicating whether need keep original email address. More...
 
void set_KeepOriginalEmailAddresses (bool value)
 Sets a value indicating whether need keep original email address. More...
 
bool get_PreserveRtfContent () const
 Gets a value indicating whether need keep rtf body in MailMessage. More...
 
void set_PreserveRtfContent (bool value)
 Sets a value indicating whether need keep rtf body in MailMessage. More...
 
int32_t get_Timeout () const
 Limits the time in milliseconds of formatting message while converting. Default value 3 sec. More...
 
void set_Timeout (int32_t value)
 Limits the time in milliseconds of formatting message while converting. Default value 3 sec. More...
 
void OnTimeoutReached (System::SharedPtr< MailMessage > msg)
 
 MailConversionOptions ()
 

Public Attributes

System::EventHandler TimeoutReached
 Raised if timed out while converting to MailMessage. More...
 

Friends

class Aspose::Email::Mapi::MapiMessage
 

Detailed Description

Specify additional options when converting from MapiMessage to MailMessage.

Constructor & Destructor Documentation

◆ MailConversionOptions()

Aspose::Email::Mapi::MailConversionOptions::MailConversionOptions ( )

Member Function Documentation

◆ get_ConvertAsTnef()

bool Aspose::Email::Mapi::MailConversionOptions::get_ConvertAsTnef ( ) const

Set to true to import the MapiMessage information into a MailMessage object with MapiMessage as TNEF attachment.

◆ get_KeepOriginalEmailAddresses()

bool Aspose::Email::Mapi::MailConversionOptions::get_KeepOriginalEmailAddresses ( ) const

Gets a value indicating whether need keep original email address.

◆ get_PreserveEmbeddedMessageFormat()

bool Aspose::Email::Mapi::MailConversionOptions::get_PreserveEmbeddedMessageFormat ( ) const

Gets a value indicating whether it is necessary to preserve MSG format of embedded message at converting to MailMessage. By default the value is false.

Generally, embedded messages have the same format (EML or MSG) as the underlying message. By default, when converting from MSG to EML and vice versa, embedded messages are also converted to the target format. Setting the property to true preserves the original format of the embedded messages.

◆ get_PreserveRtfContent()

bool Aspose::Email::Mapi::MailConversionOptions::get_PreserveRtfContent ( ) const

Gets a value indicating whether need keep rtf body in MailMessage.

◆ get_Timeout()

int32_t Aspose::Email::Mapi::MailConversionOptions::get_Timeout ( ) const

Limits the time in milliseconds of formatting message while converting. Default value 3 sec.

◆ OnTimeoutReached()

void Aspose::Email::Mapi::MailConversionOptions::OnTimeoutReached ( System::SharedPtr< MailMessage msg)

◆ set_ConvertAsTnef()

void Aspose::Email::Mapi::MailConversionOptions::set_ConvertAsTnef ( bool  value)

Set to true to import the MapiMessage information into a MailMessage object with MapiMessage as TNEF attachment.

◆ set_KeepOriginalEmailAddresses()

void Aspose::Email::Mapi::MailConversionOptions::set_KeepOriginalEmailAddresses ( bool  value)

Sets a value indicating whether need keep original email address.

◆ set_PreserveEmbeddedMessageFormat()

void Aspose::Email::Mapi::MailConversionOptions::set_PreserveEmbeddedMessageFormat ( bool  value)

Sets a value indicating whether it is necessary to preserve MSG format of embedded message at converting to MailMessage. By default the value is false.

Generally, embedded messages have the same format (EML or MSG) as the underlying message. By default, when converting from MSG to EML and vice versa, embedded messages are also converted to the target format. Setting the property to true preserves the original format of the embedded messages.

◆ set_PreserveRtfContent()

void Aspose::Email::Mapi::MailConversionOptions::set_PreserveRtfContent ( bool  value)

Sets a value indicating whether need keep rtf body in MailMessage.

◆ set_Timeout()

void Aspose::Email::Mapi::MailConversionOptions::set_Timeout ( int32_t  value)

Limits the time in milliseconds of formatting message while converting. Default value 3 sec.

Friends And Related Function Documentation

◆ Aspose::Email::Mapi::MapiMessage

friend class Aspose::Email::Mapi::MapiMessage
friend

Member Data Documentation

◆ TimeoutReached

System::EventHandler Aspose::Email::Mapi::MailConversionOptions::TimeoutReached

Raised if timed out while converting to MailMessage.