Feature Request [proton-mail-export-cli] Add --since and --filter-domain flags for scoped, incremental backups
Summary
Love the export tool and use it for regular business backups. Two small additions to the CLI would make it significantly more practical for recurring and domain-scoped use cases: a --since flag to limit exports to a recent time window, and a --filter-domain flag to scope exports to a specific email domain.
Proposed Flags
--since DATE
Export only messages on or after a given date (ISO 8601).
./proton-mail-export-cli --operation backup --dir ./backup --since 2026-03-01
--since is the established convention for this pattern across tools like git log, journalctl, and most backup utilities, making it immediately intuitive.
Why it matters: Without this flag, every run re-scans and re-downloads the entire mailbox. On a large inbox a full export can take hours. With --since, a weekly backup of a busy inbox downloads tens of messages instead of thousands — making scheduled backups fast and storage-efficient.
--filter-domain DOMAIN
Export only messages where at least one address field (From, To, CC, BCC) matches the given domain.
./proton-mail-export-cli --operation backup --dir ./backup --filter-domain company.com
Why it matters: Users managing multiple identities or custom domains have no way today to produce a focused archive without post-processing. A single flag makes compliance exports and domain-scoped backups first-class workflows.
Thanks a bunch in advance for your consideration!