estimate: count and size a Takeout's mail #69

Merged
jcoffey-dev merged 1 commits from feat/estimate-takeout into main 2026-11-12 16:42:41 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev d64a7e9d3b estimate: count and size a Takeout's mail
ci / test (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 5m52s
ci / announce (pull_request) Skipped
A Takeout is a local file dump with no server to ask, so its plain dry
run only counts files. --estimate now reads the mbox files to count the
messages that are actually new -- deduplicated by the same content hash
the import uses, so a message in two mboxes counts once and anything
already in the archive is skipped -- and sums their bytes. It parses no
MIME and writes nothing.

Calendars and contacts in a Takeout are not itemized yet; the file
counts in the dry-run log stand in for them.
2026-11-12 09:25:02 -07:00