MailboxConverter.ConvertPersonalStorageToMbox

ConvertPersonalStorageToMbox(PersonalStorage, string, MessageAcceptanceCallback)

Converts the PersonalStorage to mbox format using given path.

public static void ConvertPersonalStorageToMbox(PersonalStorage personalStorage, 
    string storagePath, MessageAcceptanceCallback acceptanceCallback)
ParameterTypeDescription
personalStoragePersonalStorageThe personal storage.
storagePathStringThe path to save personalStorage structure to.
acceptanceCallbackMessageAcceptanceCallbackThe acceptance callback, can be null.

Exceptions

exceptioncondition
ArgumentNullExceptionIf personalStorage is null.
ArgumentNullExceptionIf storagePath is null.

Remarks

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

See Also


ConvertPersonalStorageToMbox(PersonalStorage, MboxStorageWriter, MessageAcceptanceCallback)

Converts the PersonalStorage to mbox format using given MboxStorageWriter.

public static void ConvertPersonalStorageToMbox(PersonalStorage personalStorage, 
    MboxStorageWriter mboxStorageWriter, MessageAcceptanceCallback acceptanceCallback)
ParameterTypeDescription
personalStoragePersonalStorageThe personal storage.
mboxStorageWriterMboxStorageWriterThe mbox storage writer.
acceptanceCallbackMessageAcceptanceCallbackThe acceptance callback, can be null.

Exceptions

exceptioncondition
ArgumentNullExceptionIf personalStorage is null.
ArgumentNullExceptionIf mboxStorageWriter is null.

Remarks

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.

See Also