com.aspose.email

com.aspose.email

Class MailboxConverter

public class MailboxConverter
extends Object

Provides mailbox conversion routines.

Constructor Summary
 
Method Summary
staticvoid
convertPersonalStorageToMbox(PersonalStorage personalStorage, MboxStorageWriter mboxStorageWriter, MessageAcceptanceCallback acceptanceCallback)
Converts the PersonalStorage to mbox format using given MboxStorageWriter.
staticvoid
convertPersonalStorageToMbox(PersonalStorage personalStorage, String storagePath, MessageAcceptanceCallback acceptanceCallback)
Converts the PersonalStorage to mbox format using given path.
 
Methods inherited from class java.lang.Object
 

    • Constructor Detail

      • MailboxConverter

        public MailboxConverter()
    • Method Detail

      • convertPersonalStorageToMbox

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

        Converts the PersonalStorage to mbox format using given path.

        Parameters:
        personalStorage - The personal storage.
        storagePath - The path to save personalStorage structure to.
        acceptanceCallback - 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.

        Throws:
        com.aspose.email.ms.System.IllegalArgumentException - If personalStorage is null.
        com.aspose.email.ms.System.IllegalArgumentException - If storagePath is null.
      • convertPersonalStorageToMbox

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

        Converts the PersonalStorage to mbox format using given MboxStorageWriter.

        Parameters:
        personalStorage - The personal storage.
        mboxStorageWriter - The mbox storage writer.
        acceptanceCallback - 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.

        Throws:
        com.aspose.email.ms.System.IllegalArgumentException - If personalStorage is null.
        com.aspose.email.ms.System.IllegalArgumentException - If mboxStorageWriter is null.