estimate: size an Exchange (EWS) mailbox #70

Merged
jcoffey-dev merged 1 commits from feat/estimate-ews into main 2026-11-12 16:45:23 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev d4dec7ea70 estimate: count and size an Exchange (EWS) mailbox
ci / test (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 6m12s
ci / announce (pull_request) Skipped
--estimate now works for an EWS source. A dry run already reports the
folder counts; with --estimate it goes one step further and enumerates
each folder's items with FindItem, which carries item:Size, so mail,
calendar events and contacts are counted and sized without fetching a
body and without writing anything.

The new count is taken against the archive with the same diff the import
uses, so a re-estimate of a part-filled archive reports only what is
left. A pure helper, new_count_and_bytes, sums the new items' reported
sizes (an item the server returned without a size still counts) and is
unit-tested directly.
2026-11-12 09:38:30 -07:00