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

Provides mailbox conversion routines. More...

Inherits Object.

Public Member Functions

 MailboxConverter ()=delete
 

Static Public Member Functions

static void ConvertPersonalStorageToMbox (System::SharedPtr< Pst::PersonalStorage > personalStorage, System::String storagePath, MessageAcceptanceCallback acceptanceCallback)
 Converts the PersonalStorage to mbox format using given path. More...
 
static 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.

Constructor & Destructor Documentation

◆ MailboxConverter()

Aspose::Email::Storage::MailboxConverter::MailboxConverter ( )
delete

Member Function Documentation

◆ ConvertPersonalStorageToMbox() [1/2]

static 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.

◆ ConvertPersonalStorageToMbox() [2/2]

static 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.