ConvertPersonalStorageToMbox

MailboxConverter.ConvertPersonalStorageToMbox method (1 of 2)

Converts the PersonalStorage to mbox format using given path.

public static void ConvertPersonalStorageToMbox(PersonalStorage personalStorage, 
    string storagePath, MessageAcceptanceCallback acceptanceCallback)
Parameter Type Description
personalStorage PersonalStorage The personal storage.
storagePath String The path to save personalStorage structure to.
acceptanceCallback MessageAcceptanceCallback The acceptance callback, can be null.

Exceptions

exception condition
ArgumentNullException If personalStorage is null.
ArgumentNullException If 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


MailboxConverter.ConvertPersonalStorageToMbox method (2 of 2)

Converts the PersonalStorage to mbox format using given MboxStorageWriter.

public static void ConvertPersonalStorageToMbox(PersonalStorage personalStorage, 
    MboxStorageWriter mboxStorageWriter, MessageAcceptanceCallback acceptanceCallback)
Parameter Type Description
personalStorage PersonalStorage The personal storage.
mboxStorageWriter MboxStorageWriter The mbox storage writer.
acceptanceCallback MessageAcceptanceCallback The acceptance callback, can be null.

Exceptions

exception condition
ArgumentNullException If personalStorage is null.
ArgumentNullException If 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