将 MBOX 转换为 PST
Contents
[
Hide
]
在保留或移除签名的情况下将 MBOX 转换为 PST
在将 MBOX 文件转换为 PST 格式时,您可能希望从消息中排除数字签名,以获得更干净的输出或兼容性。Aspose.Email 提供了一个便利选项,可在转换过程中使用以下方式删除这些签名: remove_signature 属性的 MboxToPstConversionOptions 类。
下面的示例演示如何在 Python 项目中启用此选项:
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)