Skip to content

mxr count

Generated from mxr count --help. After editing crates/daemon/src/cli/, update and review the snapshots with scripts/cargo-test -p mxr --test integration cli_help::, then rebuild site/.

Count matching messages

mxr count [OPTIONS] <QUERY>
Flag Description
<QUERY>
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

Count a query without fetching message bodies. Use –quiet for a bare number in a script, or group matching mail by sender.

Terminal window
mxr count 'is:unread' --quiet
mxr count 'newer_than:7d' --group-by from --format json