Skip to content

feat(cli, api): filter get emails by mailbox name and timerange#442

Merged
joe-prosser merged 1 commit into
masterfrom
feat/get-emails-mailbox-timerange-filter
Jun 1, 2026
Merged

feat(cli, api): filter get emails by mailbox name and timerange#442
joe-prosser merged 1 commit into
masterfrom
feat/get-emails-mailbox-timerange-filter

Conversation

@joe-prosser
Copy link
Copy Markdown
Collaborator

What

Adds --mailbox, --from-timestamp, and --to-timestamp flags to re get emails, so users can query a bucket's raw emails by mailbox and/or time range instead of downloading the whole bucket.

re get emails <bucket> --mailbox alice@example.com
re get emails <bucket> --from-timestamp 2024-01-01T00:00:00Z --to-timestamp 2024-02-01T00:00:00Z
re get emails <bucket> --mailbox alice@example.com --from-timestamp 2024-01-01T00:00:00Z --to-timestamp 2024-02-01T00:00:00Z

@joe-prosser joe-prosser self-assigned this Jun 1, 2026
@joe-prosser joe-prosser force-pushed the feat/get-emails-mailbox-timerange-filter branch from 15b24dd to 6838702 Compare June 1, 2026 13:37
Adds `--mailbox`, `--from-timestamp`, and `--to-timestamp` flags to
`re get emails`, so users can query a bucket's raw emails by mailbox
and/or time range instead of downloading the whole bucket.

When any filter is set the command routes to the new
`/_private/buckets/<owner>/<name>/emails/query` endpoint; with no
filters it keeps the existing listing behaviour.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@joe-prosser joe-prosser force-pushed the feat/get-emails-mailbox-timerange-filter branch from 86ae332 to c912a29 Compare June 1, 2026 14:03
@joe-prosser joe-prosser merged commit 15312c4 into master Jun 1, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant