Aspose::Email::Storage::MailboxConverter Class Reference

Provides mailbox conversion routines. More...

Inherits Object.

Static Public Member Functions

static ASPOSE_EMAIL_SHARED_API void ConvertPersonalStorageToMbox (System::SharedPtr< Pst::PersonalStorage > personalStorage, System::String storagePath, MessageAcceptanceCallback acceptanceCallback)
 Converts the PersonalStorage to mbox format using given path. More...
 
static ASPOSE_EMAIL_SHARED_API void ConvertPersonalStorageToMbox (System::SharedPtr< Pst::PersonalStorage > personalStorage, System::SharedPtr< Mbox::MboxStorageWriter > mboxStorageWriter, MessageAcceptanceCallback acceptanceCallback)
 Converts the PersonalStorage to mbox format using given MboxStorageWriter. More...
 

Detailed Description

Provides mailbox conversion routines.

Member Function Documentation

◆ ConvertPersonalStorageToMbox() [1/2]

static ASPOSE_EMAIL_SHARED_API void Aspose::Email::Storage::MailboxConverter::ConvertPersonalStorageToMbox ( System::SharedPtr< Pst::PersonalStorage personalStorage,
System::String  storagePath,
MessageAcceptanceCallback  acceptanceCallback 
)
static

Converts the PersonalStorage to mbox format using given path.

Parameters
personalStorageThe personal storage.
storagePathThe path to save personalStorage structure to.
acceptanceCallbackThe acceptance callback, can be null.

Resulting folder will contain an exact copy of the personalStorage e.g. directory tree will be recreated on disk.

Exceptions
ArgumentNullExceptionIf personalStorage is null.
ArgumentNullExceptionIf storagePath is null.

◆ ConvertPersonalStorageToMbox() [2/2]

static ASPOSE_EMAIL_SHARED_API void Aspose::Email::Storage::MailboxConverter::ConvertPersonalStorageToMbox ( System::SharedPtr< Pst::PersonalStorage personalStorage,
System::SharedPtr< Mbox::MboxStorageWriter mboxStorageWriter,
MessageAcceptanceCallback  acceptanceCallback 
)
static

Converts the PersonalStorage to mbox format using given MboxStorageWriter.

Parameters
personalStorageThe personal storage.
mboxStorageWriterThe mbox storage writer.
acceptanceCallbackThe acceptance callback, can be null.

Resulting mbox storage will contain only one plain inbox folder with all messages, if you have to preserve the original structure of the storage, use XXX_method instead.

Exceptions
ArgumentNullExceptionIf personalStorage is null.
ArgumentNullExceptionIf mboxStorageWriter is null.