imaprec

command
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command imaprec turns a session trace from maild (MAILD_IMAP_TRACE) into a replay script that can be checked in (docs/design/testing.md, transcript replay). It cuts the session after one command, can keep only the newest messages each mailbox fetched, and replaces what the account's mail says (names, addresses, subjects, bodies, mailbox names) with stable fakes while keeping the protocol's shape. It refuses to write a script in which a word it replaced still appears.

go run ./tools/imaprec -through T14 -keep 5 -note "Gmail, first sync" -o script.txt TRACE

Scripts that continue one another (a second session of the same account) must share their fakes: scrub them with the same -keyfile, made once with head -c 32 /dev/urandom and never checked in.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL