com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class MailboxConverter



  • public class MailboxConverter
    extends Object

    Provides mailbox conversion routines.

    • 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.ms.System.ArgumentNullException - If personalStorage is null.
        com.aspose.ms.System.ArgumentNullException - 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.ms.System.ArgumentNullException - If personalStorage is null.
        com.aspose.ms.System.ArgumentNullException - If mboxStorageWriter is null.