Follow-up to #67 (stacked on it — merge #67 first). Extends real --estimate sizes from mail to calendars and contacts, so the four standard-protocol sources — imap, maildir, caldav, carddav — all report counts and bytes.
How. The per-collection PROPFIND the dry-run already issues now also asks for <d:getcontentlength/>. The parser already reads that prop (ResourceProps.content_length), so sizing calendar events and contact cards costs no extra request — the same pattern the WebDAV listing already used. A server that omits the length just leaves those items unsized.
Scope. CalDAV and CardDAV only. WebDAV files stay on the dry-run fallback: its dry-run drops the per-file counts into a row the summary doesn’t surface, so sizing there needs separate work.
Change surface. One prop added to the shared propfind_dav_items() (additive, universally-supported, ignored by callers that don’t use it); a want_sizes-gated sum in the CalDAV/CardDAV dry-run branch; caldav/carddav added to Action::estimate_available(); help/README/fallback-note updated. New unit test that the item PROPFIND requests getcontentlength. cargo test --locked, fmt, clippy -D warnings all pass.
Follow-up to #67 (stacked on it — **merge #67 first**). Extends real `--estimate` sizes from mail to calendars and contacts, so the four standard-protocol sources — `imap`, `maildir`, `caldav`, `carddav` — all report counts **and** bytes.
**How.** The per-collection PROPFIND the dry-run already issues now also asks for `<d:getcontentlength/>`. The parser already reads that prop (`ResourceProps.content_length`), so sizing calendar events and contact cards costs **no extra request** — the same pattern the WebDAV listing already used. A server that omits the length just leaves those items unsized.
**Scope.** CalDAV and CardDAV only. WebDAV files stay on the dry-run fallback: its dry-run drops the per-file counts into a row the summary doesn’t surface, so sizing there needs separate work.
**Change surface.** One prop added to the shared `propfind_dav_items()` (additive, universally-supported, ignored by callers that don’t use it); a `want_sizes`-gated sum in the CalDAV/CardDAV dry-run branch; `caldav`/`carddav` added to `Action::estimate_available()`; help/README/fallback-note updated. New unit test that the item PROPFIND requests `getcontentlength`. `cargo test --locked`, fmt, clippy `-D warnings` all pass.
The item PROPFIND the dry run already does now asks for getcontentlength
as well, which the parser already reads, so --estimate can size calendar
events and contact cards at no extra request -- rounding out real sizes
to mail, calendars and contacts. A server that omits the length leaves
those items unsized; WebDAV files stay on the dry-run fallback, where the
file count is reported differently.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Follow-up to #67 (stacked on it — merge #67 first). Extends real
--estimatesizes from mail to calendars and contacts, so the four standard-protocol sources —imap,maildir,caldav,carddav— all report counts and bytes.How. The per-collection PROPFIND the dry-run already issues now also asks for
<d:getcontentlength/>. The parser already reads that prop (ResourceProps.content_length), so sizing calendar events and contact cards costs no extra request — the same pattern the WebDAV listing already used. A server that omits the length just leaves those items unsized.Scope. CalDAV and CardDAV only. WebDAV files stay on the dry-run fallback: its dry-run drops the per-file counts into a row the summary doesn’t surface, so sizing there needs separate work.
Change surface. One prop added to the shared
propfind_dav_items()(additive, universally-supported, ignored by callers that don’t use it); awant_sizes-gated sum in the CalDAV/CardDAV dry-run branch;caldav/carddavadded toAction::estimate_available(); help/README/fallback-note updated. New unit test that the item PROPFIND requestsgetcontentlength.cargo test --locked, fmt, clippy-D warningsall pass.