Convert PST to MD using Python
PST to MD conversion in your Python Applications without installing Microsoft Word® or Outlook.
Why to Convert PST to MD?
The PST to MD conversion is a process of converting emails stored in the PST format to the MD format. This conversion is necessary for a Python developer who is trying to add a PST to MD conversion feature within an application. The MD format is a popular format for storing emails and is widely used by many email clients. It is also a more secure format than the PST format, which makes it a preferred choice for many users.
How Aspose.Total Helps for PST to MD Conversion?
Aspose.Total for Python via .NET is a full package of various APIs dealing different formats including Email, Images and Microsoft Word formats. It includes Aspose.Words for Python via .NET and Aspose.Email for Python via .NET APIs that make the PST to MD conversion process easy using Python. This conversion process is a two-step process. Firstly, the Email is loaded and rendered into HTML via Aspose.Email for Python via .NET. Secondly, the converted HTML is loaded using Aspose.Words for Python via .NET and saved into the respective Word MD format. This process is automated and makes the conversion process easier and faster.
How to Convert PST to MD in Python
- Open the source PST file using MailMessage.load class
- Call the
save
method while specifying output HTML file path and relevant HTML Save options as parameter. So your PST file is converted to HTML at the specified path - Now Load the saved HTML file using Document
- Call the save method with relevant file path. So finally the PST is converted
Conversion Requirements
- For PST to MD conversion, Python 3.5 or later is required
- Reference APIs within the project directly from PyPI ( Aspose.Words and Aspose.Email )
- Or use the following pip command
pip install aspose.words
andpip install Aspose.Email-for-Python-via-NET
- Moreover, Microsoft Windows or Linux based OS (see more for Words and Email ) and for Linux check additional requirements for gcc and libpython and follow step by step instructions INSTALL