Email

Extract Mailbox (PST/OST)

Extracts every email and other item from Outlook .pst and .ost files into .eml files in the mailbox's own folder structure, without needing Outlook, and reports every item.

PRO Command line: extract-mailbox Version 1.0
A Pro toolIn the free edition it works on up to 25 documents per run, so you can try it on real work. Compare Free and Pro.

Extract Mailbox reads Outlook data files directly, so Outlook does not need to be installed. Each item becomes one .eml file under a folder named after the mailbox file, inside the mailbox's own folders (Inbox, Sent Items, Inbox\Projects and so on).

Received emails keep their original internet headers (Message-ID, Received lines, Date) where the mailbox stored them; other items get headers built from their own details. Attachments and attached emails stay inside each .eml, so the result can go straight into Extract Attachments, Email Metadata, Email Threads, Search or Convert To PDF.

Every item is listed in the report, whether it was extracted or not, and each folder's item count is checked against the count the mailbox records. Outlook's own system folders (views, search folders, rules and similar) are not extracted; a note says how many items they held.

Extract Mailbox (PST/OST)
Extract Mailbox (PST/OST) in LitTechKit
Extract Mailbox (PST/OST) after a run on demonstration data.

Use it when

How to run it

  1. Close Outlook, or remove the data file from Outlook's folder list, if the mailbox is on this computer.
  2. Choose the folder holding the .pst/.ost files (or one file) as Input, and an Output folder outside it.
  3. Choose Items: All, or EmailsOnly.
  4. If needed, enter a From date and To date (yyyy-mm-dd) and any Skip folders.
  5. Click Run.
  6. Read the notes in the result panel, then click Open report and check the Status column.

Settings

Every setting has the same help beside it in the app. On the command line, pass each as --name value; ltk help extract-mailbox lists them.

Settings

SettingWhat it doesType and default
Items
--items
All (default): every item, including calendar items, contacts, tasks and notes. EmailsOnly: emails, meeting requests and delivery reports.
EmailsOnly keeps emails, meeting requests and delivery reports, and leaves out calendar items, contacts, tasks and notes. Left-out items are still listed in the report with the status Not extracted: not an email. Non-email items that are extracted carry an X-Outlook-Item-Type header showing their Outlook type.
choice: All, EmailsOnly
All
From date
--date-from
Only items dated on or after this day (yyyy-mm-dd), by sent date, else received date. Empty: no lower limit. Items outside the range are listed in the report but not extracted.
Uses the sent date, or the received date if there is no sent date. Items with no date at all are left out whenever a date range is set, and their row says so. A date in any other form than yyyy-mm-dd stops the run before anything is extracted.
text
empty
To date
--date-to
Only items dated on or before this day (yyyy-mm-dd). Empty: no upper limit.
Includes the whole of the To day. If the To date is before the From date, the run stops.
text
empty
Skip folders
--skip-folders
Folders to leave out, by name or path (e.g. Deleted Items, Inbox\Newsletters); their sub-folders are left out too. Their items are listed in the report but not extracted.
A plain name (such as Deleted Items) leaves out every folder with that name at any level. A path (such as Inbox\Newsletters) leaves out that folder only. Sub-folders of a left-out folder are left out too. Separate several entries with commas on the command line.
list
empty

Common settings

SettingWhat it doesType and default
Input required
--input
Folder (or single file) to read. It is opened read-only and never modified. folder
empty
Output required
--output
Folder for reports. Must not be inside the input folder. Each run gets its own sub-folder. folder
empty
Recurse
--recurse
Include sub-folders. yes/no
true
Extensions
--extensions
Only process these extensions (e.g. .pdf, .docx). Empty means the tool's default set. list
empty
Parallelism
--parallelism
Files processed at once. Use 1-2 for spinning disks or network shares. number
4

What you get

Each run creates its own folder inside the output folder, with the report extract-mailbox.csv, errors.csv and manifest.json (see Run folders and manifests).

Report columns

Check the result

Tips
  • In the free edition, a mailbox counts as the number of items it holds, not as one file, towards the 25-document limit.
  • Embedded OLE objects cannot be extracted as attachments; the item's Details column says when one was left out.
  • Exchange-internal addresses that are not internet addresses are kept as stored rather than dropped.
  • Run Extract Attachments on the files folder afterwards to take the attachments out with family IDs.
Watch out for
  • A mailbox Outlook has open is locked. The tool does not read it and reports the problem in errors.csv: close Outlook (or remove the file from Outlook's folder list), wait a few minutes and run again. If the file is merely in use rather than locked, a copy is taken at the start of the run and read instead; a note says so, and the copy is deleted afterwards.
  • Dates in the report and the date filter are in UTC. An email sent early in the morning in Australia may fall on the previous UTC day, so widen the range by a day if the boundary matters.
  • A file that is not a real Outlook data file is reported as an error and skipped.

From the command line

The command line is part of LitTechKit Pro. See Command line.

ltk run extract-mailbox --input "D:\Matter\Collections\Smith" --output "D:\Matter\Extracted" --items EmailsOnly --date-from 2023-07-01 --date-to 2024-06-30 --skip-folders "Deleted Items"

Related tools