Aspose::Email::Storage::MailStorageConverter Class Reference

Mail storage converter provides services for storage conversion operations. More...

Inherits Object.

Public Types

using MailHandler = System::MulticastDelegate< void(System::SharedPtr< MailMessage >)>
 

Static Public Member Functions

static ASPOSE_EMAIL_SHARED_API System::SharedPtr< Pst::PersonalStorageMboxToPst (System::String mboxFileName, System::String pstFileName)
 Converts an mboxrd message store to PST. More...
 
static ASPOSE_EMAIL_SHARED_API System::SharedPtr< Pst::PersonalStorageMboxToPst (System::String mboxFileName, System::String pstFileName, MailStorageConverter::MailHandler mailHandler)
 Converts an mboxrd message store to PST. More...
 
static ASPOSE_EMAIL_SHARED_API System::SharedPtr< Pst::PersonalStorageMboxToPst (System::SharedPtr< System::IO::Stream > mboxrdDataStream, System::String pstFileName)
 Converts an mboxrd message store to PST. More...
 
static ASPOSE_EMAIL_SHARED_API System::SharedPtr< Pst::PersonalStorageMboxToPst (System::SharedPtr< System::IO::Stream > mboxrdDataStream, System::String pstFileName, MailStorageConverter::MailHandler mailHandler)
 Converts an mboxrd message store to PST. More...
 

Detailed Description

Mail storage converter provides services for storage conversion operations.

Member Typedef Documentation

◆ MailHandler

using Aspose::Email::Storage::MailStorageConverter::MailHandler = System::MulticastDelegate<void(System::SharedPtr<MailMessage>)>

Member Function Documentation

◆ MboxToPst() [1/4]

static ASPOSE_EMAIL_SHARED_API System::SharedPtr<Pst::PersonalStorage> Aspose::Email::Storage::MailStorageConverter::MboxToPst ( System::SharedPtr< System::IO::Stream >  mboxrdDataStream,
System::String  pstFileName 
)
static

Converts an mboxrd message store to PST.

Parameters
mboxrdDataStreamThe mboxrd data stream.
pstFileNameName of the PST file.
Returns
Personal storage object that represents the converted storage.
Exceptions
ArgumentNullExceptionIf mboxrdDataStream is null.
ArgumentNullExceptionIf pstFileName is null or empty.

◆ MboxToPst() [2/4]

static ASPOSE_EMAIL_SHARED_API System::SharedPtr<Pst::PersonalStorage> Aspose::Email::Storage::MailStorageConverter::MboxToPst ( System::SharedPtr< System::IO::Stream >  mboxrdDataStream,
System::String  pstFileName,
MailStorageConverter::MailHandler  mailHandler 
)
static

Converts an mboxrd message store to PST.

Parameters
mboxrdDataStreamThe mboxrd data stream.
pstFileNameName of the PST file.
mailHandlerThe delegate called on each message
Returns
Personal storage object that represents the converted storage.
Exceptions
ArgumentNullExceptionIf mboxrdDataStream is null.
ArgumentNullExceptionIf pstFileName is null or empty.

◆ MboxToPst() [3/4]

static ASPOSE_EMAIL_SHARED_API System::SharedPtr<Pst::PersonalStorage> Aspose::Email::Storage::MailStorageConverter::MboxToPst ( System::String  mboxFileName,
System::String  pstFileName 
)
static

Converts an mboxrd message store to PST.

Parameters
mboxFileNameName of the mbox file.
pstFileNameName of the PST file.
Returns
Personal storage object that represents the converted storage.
Exceptions
ArgumentNullExceptionIf mboxFileName is null.

In addition the same set of exceptions can be thrown as for FileStream creation using the open/read, create/write mode.

◆ MboxToPst() [4/4]

static ASPOSE_EMAIL_SHARED_API System::SharedPtr<Pst::PersonalStorage> Aspose::Email::Storage::MailStorageConverter::MboxToPst ( System::String  mboxFileName,
System::String  pstFileName,
MailStorageConverter::MailHandler  mailHandler 
)
static

Converts an mboxrd message store to PST.

Parameters
mboxFileNameName of the mbox file.
pstFileNameName of the PST file.
mailHandlerThe delegate called on each message
Returns
Personal storage object that represents the converted storage.
Exceptions
ArgumentNullExceptionIf mboxFileName is null.

In addition the same set of exceptions can be thrown as for FileStream creation using the open/read, create/write mode.