MailboxConverter

Inheritance: java.lang.Object

public class MailboxConverter

Provides mailbox conversion routines.

Constructors

Constructor Description
MailboxConverter()

Methods

Method Description
convertPersonalStorageToMbox(PersonalStorage personalStorage, String storagePath, MessageAcceptanceCallback acceptanceCallback) Converts the PersonalStorage to mbox format using given path.
convertPersonalStorageToMbox(PersonalStorage personalStorage, MboxStorageWriter mboxStorageWriter, MessageAcceptanceCallback acceptanceCallback) Converts the PersonalStorage to mbox format using given MboxStorageWriter.

MailboxConverter()

public MailboxConverter()

convertPersonalStorageToMbox(PersonalStorage personalStorage, String storagePath, MessageAcceptanceCallback acceptanceCallback)

public static void convertPersonalStorageToMbox(PersonalStorage personalStorage, String storagePath, MessageAcceptanceCallback acceptanceCallback)

Converts the PersonalStorage to mbox format using given path.

Parameters:

Parameter Type Description
personalStorage PersonalStorage The personal storage.
storagePath java.lang.String The path to save ``` personalStorage ``` structure to.
acceptanceCallback MessageAcceptanceCallback The acceptance callback, can be null.

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

convertPersonalStorageToMbox(PersonalStorage personalStorage, MboxStorageWriter mboxStorageWriter, MessageAcceptanceCallback acceptanceCallback)

public static void convertPersonalStorageToMbox(PersonalStorage personalStorage, MboxStorageWriter mboxStorageWriter, MessageAcceptanceCallback acceptanceCallback)

Converts the PersonalStorage to mbox format using given MboxStorageWriter.

Parameters:

Parameter Type Description
personalStorage PersonalStorage The personal storage.
mboxStorageWriter MboxStorageWriter The mbox storage writer.
acceptanceCallback MessageAcceptanceCallback The 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. |