Skip to content

fix(mail): OR the values of one mail list --from/--to flag - #8

Merged
svd merged 2 commits into
devfrom
fix/mail-list-address-or
Nov 5, 2026
Merged

svd merged 2 commits into
devfrom
fix/mail-list-address-or

Conversation

@svd

@svd svd commented Nov 5, 2026

Copy link
Copy Markdown
Owner

mail list --from and --to now match any of their values. Several values, repeated or comma-separated, become one KQL OR group, (from:a OR from:b); a single value stays from:a. Before this change they were ANDed and matched nothing.

  • --search, the --from group, the --to group and the received dates are still joined with AND. --search is parenthesised when other terms join it, so an OR inside it stays inside it.
  • A bare domain such as @example.com passes through as from:@example.com and matches every address at it.
  • Docs (reference/commands/mail.md) and CHANGELOG [Unreleased] updated.
  • A separate commit replaces a client name in a research doc with a synthetic search term.

Tests: 905 passed locally. Live read-only check on a real tenant: --from @domain 42, --from <external> 8, --from @domain,<external> 50.

svd added 2 commits November 5, 2026 21:07
Several --from or --to values, repeated or comma-separated, were joined
into the KQL with AND, which matches nothing. Each flag's values now form
one group, (from:a OR from:b); a single value stays from:a. --search, the
groups and the received date terms are still joined with AND, and
--search is parenthesised when other terms join it, so an OR in it stays
inside it. A bare domain such as @example.com passes through as
from:@example.com.
@svd
svd merged commit 804b28f into dev Nov 5, 2026
12 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