Skip to content

Releases

pypstreader 1.0.0 — production release

Choose a tag to compare

@justanyone justanyone released this 17 Sep 03:27

pypstreader 1.0.0 — the first production release.

A pure-Python, zero-dependency reader for Outlook PST stores, ported from the
read path of microsoft/outlook-pst-rs (MIT).

pip install pypstreader        # the library and the command
pypstreader store.pst          # -> store.mbox, every folder, every message

What "production" means here

No API change from 0.1.0. The promotion is a statement about stability and
evidence, not new features:

  • The read path is complete. NDB (header, pages, B-trees, blocks), LTP
    (heap, BTH, property and table contexts), and messaging (store, named
    properties, folders, messages, recipients, attachments, embedded messages),
    plus export to .eml and mbox.
  • Verified differentially, not just tested. Every layer is diffed against
    the upstream Rust binaries over the same bytes;
    python -m pypstreader.debug messages <file> reproduces the Rust oracle's
    dump byte for byte on every store in the corpus, exit status included.
  • The public API is stable and now follows semantic versioning. A breaking
    change to the names in docs/INTERFACES.md means 2.0, not a minor bump.
  • Zero runtime dependencies, standard library only, pure wheel.

Scope, stated up front

  • Read-only. This reads mail stores; it never produces one.
  • Unicode stores only (Outlook 2003 and later). An ANSI store is refused
    with PstUnsupportedError — never guessed at (ADR-0003).
  • Not yet rendered on export: DSN, TNEF and iCalendar bodies; Maildir.

Untrusted input is the threat model

A PST arrives from a laptop image, a discovery production, an adversary. Every
offset, length and count in it is attacker-controlled, so the reader fails
closed
: an unrecognised crypt method, version or node type raises rather than
being read as plaintext or guessed past. Recursion depth, allocation size and
item counts are explicit limits, with PstLimitError kept distinguishable from
PstFormatError. No struct.error, IndexError or MemoryError escapes a
public entry point — a harness sweeps every public callable over mutated stores
to keep that true.

Also in this release

  • The .eml header comparisons in the test suite no longer depend on a CPython
    patch level. CPython changed whether the email parser keeps the whitespace
    after a header's colon between 3.12.3 and 3.12.13; the bytes written are
    identical either way, so the tests normalise the parsed value instead. This
    was failing CI on the runner's 3.12.3 while passing on newer developer boxes.
  • CI's unit suite is split into a fast lane and a slow lane, so a broken build
    says so in the first minute instead of after fifteen.
  • The build record moved to DoneFeatures.md; MasterToDo.md now carries only
    open work.

Verified for this release

  • Full suite green on CPython 3.12.3 and 3.13 — 2689 passed, 14 skipped,
    7 xfailed. 3.12.3 matters specifically: it is the oldest 3.12 the CI runner
    offers, and it is where the header bug above showed up.
  • The nightly differential job ran for the first time and passed end to
    end: it builds the upstream Rust at the pinned revision on the runner and
    re-checks every captured golden against that fresh oracle, plus the
    upstream-parity lint, the dump_messages goldens, and a byte-for-byte
    regeneration of the synthetic fixture. The goldens in this repo are not
    stale snapshots — they still agree with the Rust.
  • Provenance, upstream-parity and quality-ratchet lints clean; the guard that
    keeps mail stores out of the repository passes.
  • All four artifacts build (sdist 147 KB, allow-listed), and a fresh-venv
    install of the 1.0.0 wheel runs the CLI end to end.

The alias

pip install pstreader installs the same thing under the shorter name; it is a
re-export pinned to pypstreader==1.0.0, with no code of its own.