Code Monkey home page Code Monkey logo

ost2pst's Introduction

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


ost2pst's People

Contributors

mkorthof avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.