Skip to content

Latest commit

 

History

History
112 lines (69 loc) · 3.63 KB

README.md

File metadata and controls

112 lines (69 loc) · 3.63 KB

OST2PST

A while ago I needed something to convert a 5GB Outlook OST file to PST format. Turned out Aspose has a good (commercial) API/library for Java to do exactly that. I had not touched Java for 10 years but got things sorted within a few hours thanks to clear instructions and good examples and docs. I just used the example and made minimal changes, nothing more.

Saving to Outlook 2013/2016 PST files is not supported

Download

Get files below or from Releases page

Jar and wrappers:

If you need to install Java use your OS package manager or download it here: JRE8+ or alternatively JavaSE-RE-8+.

Usage

  • Windows: ost2pst.bat <input.ost> <output.pst>
  • Linux: ost2pst.sh <input.ost> <output.pst>

Or run the jar directly: java -jar ost2pst.jar <input.ost> <output.pst>

Remember you need to have at least JRE8 installed, OpenJDK is untested but should work

Example

C:\src\ost2pst>ost2pst.bat input.ost output.pst

OST2PST (210619)

INFO: File format is "64-bit Unicode" (23)
INFO: Loading file "input.pst" (5GB)
      Folder [00] "Public"
      Folder [01] "Inbox"
      Folder [02] "Outbox"
      Folder [03] "Sent Items"

INFO: Converting "input.pst" to "output.ost" 511MB/4751MB (11%) |

Building from source

Import into Eclipse:

Get Aspose.Email for Java API/lib (required)

Create runnable Jar in Eclipse

  • use Ant to 'Export', 'Java', 'Runnable JAR file' (used for ost2pst.jar)
  • or alternatively use Maven to build project

TODO

Add new option that tries to read corrupted ost/pst files. See here for more info.

C:\src\ost2pst>ost2pst.bat -c broken.ost

Changelog

20210702

  • fixed file size formatting: programming.guide :)
  • updated aspose-email lib to 21.5
  • removed aspose-email submodule from git repo

20200317

  • show file format info
  • exits instead of trying to save outlook 2013+ files
  • jar also builds in maven now

20200313

  • error handling, added notice about outlook '13/16 files
  • updated aspose-email lib to 20.2

20200119

  • fixed (visual) error before convertion
  • improved messages and progress indicator
  • updated aspose-email lib to 19.12

20180915

  • improved progress indicator
  • updated aspose-email lib to 18.8

More info


moved from old repo mkorthof/Aspose.Email-for-Java