We hit various scenarios where we need to ship an exported Office 365 mailbox in Outlook PST format to users who don’t have Outlook to read the messages. Here’s a neat and free way to give them access from a PC or Mac (you will need a PC to get there).
At a high level the process has three steps: setup, conversion from PST to EML format, import.
Setup
This process relies on the readpst
tool which is part of the libpst utilities from the 510 Software Group. If you have a Linux machine to hand then you may find this is included in your Linux distribution, but here I’ll provide instructions for running this under Windows using Cygwin:
- Download and run the Cygwin installer (run it with the
--no-admin
switch if you don’t have Admin credentials) - Remember where you installed Cygwin to – this defaulted to
C:\Cygwin64
for me - Choose options as you need, but on the
Select Packages
window change theView
toFull
, search forreadpst
(type the name, don’t press Enter), and select the latest version of the package - Complete the installation
You will also need to download and install Thunderbird on the machine you want to read the email on. This can be a Windows PC or a Mac. Once Thunderbird is installed, setup a handy import/export add-in:
- Choose
Tools > Add-ins
- Open the
Extensions
tab and search for ImportExportToolsNG - Select the add-in and click
Add to Thunderbird
, follow the prompts to install and restart
Convert PST to EML/Thunderbird
Here are the steps to convert the PST file, which I’ll assume is on a USB stick:
- Copy the PST file to
C:\Cygwin64\home\User\Outlook.PST
- Open a cygwin terminal and enter the following command:
mkdir mbox && readpst -D -e -w -o mbox Outlook.PST
- Close the cygwin window (run the command
exit
) - If you are running Thunderbird on a different machine then copy the
C:\Cygwin64\home\User\mbox
to the USB stick
Conversion runs at about 10GB/hr on a commodity solid state drive.
Import Messages to Thunderbird
If you are viewing the messages on a different machine to where you did the PST conversion then copy the mbox
folder off the USB stick. Next:
- Open Thunderbird
- Right-click
Local Folders
and chooseNew Folder
. Enter a folder name and confirm - Right-click the newly created folder and choose
ImportExportToolsNG > Import All Messages From a Directory > also from its subdirectories
- Select a top-level folder inside the
mbox
directory you created (C:\Cygwin64\home\User\mbox\*
if you’re on the same machine you did the conversion on, wherever you copied thembox
directory to otherwise) - This will import all the messages, preserving the original folder hierarchy, into Thunderbird. Note that it complete ignores the folder you created in step 2 and puts these right under
Local Folders
- You can delete the
mbox
folder now if you want.
Note that the import runs at about 5GB/hr.