mxr count
Generated from
mxr count --help. After editingcrates/daemon/src/cli/, update and review the snapshots withscripts/cargo-test -p mxr --test integration cli_help::, then rebuildsite/.
Count matching messages
mxr count [OPTIONS] <QUERY>Arguments
Section titled “Arguments”| Flag | Description |
|---|---|
<QUERY> |
Options
Section titled “Options”| Flag | Description |
|---|---|
--account <ACCOUNT> |
|
--mode <MODE> |
[possible values: lexical, hybrid, semantic] |
--quiet |
Print a bare integer, ignoring output format and tty detection |
--group-by <GROUP_BY> |
Aggregate the query result set by a field instead of printing one count [possible values: from, list, category] |
--format <FORMAT> |
[possible values: table, json, jsonl, csv, ids] |
-h, --help |
Print help |
Use When
Section titled “Use When”Count a query without fetching message bodies. Use –quiet for a bare number in a script, or group matching mail by sender.
Everyday Examples
Section titled “Everyday Examples”mxr count 'is:unread' --quietmxr count 'newer_than:7d' --group-by from --format jsonSee also
Section titled “See also”- CLI overview: full command index
- Concepts: query operators, search modes, JSON shapes
- Automation contract: which commands support
--format json,--dry-run, stdin