Convert MBOX to PST

Convert MBOX to PST while Preserving or Removing a Signature

When converting MBOX files to PST format, you may want to exclude digital signatures from the messages for cleaner output or compatibility purposes. Aspose.Email provides a convenient option to remove these signatures during the conversion process by using the remove_signature property of the MboxToPstConversionOptions class.

The example below demonstrates how to enable this option in your Python project:

import aspose.email as ae

personalStorage = ae.storage.pst.PersonalStorage.create("target.pst", ae.storage.pst.FileFormatVersion.UNICODE)
conversion_options = ae.storage.MboxToPstConversionOptions()
conversion_options.remove_signature = True
ae.storage.MailStorageConverter.mbox_to_pst( ae.storage.mbox.MboxrdStorageReader("source.mbox", ae.storage.mbox.MboxLoadOptions()), personalStorage, "Inbox", conversion_options)