Skip to content

mxr route

Generated from mxr route --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/.

Route queued messages to a target label, optionally marking read and archiving

mxr route [OPTIONS] --to <TO_LABEL> --from-queue <FROM_QUEUE_LABEL> [MESSAGE_ID]...
Flag Description
[MESSAGE_ID] …
Flag Description
--search <SEARCH>
--account <ACCOUNT>
--to <TO_LABEL>
--from-queue <FROM_QUEUE_LABEL>
--archive
--yes
--dry-run
--format <FORMAT> [possible values: table, json, jsonl, csv, ids]
-h, --help Print help

Preview moving reviewed mail from a queue label to its destination, optionally archiving it. Replace the label names with labels in your mailbox.

Terminal window
mxr route MESSAGE_ID --from-queue review --to receipts --archive --dry-run
mxr route --search 'label:review from:billing@example.com' --from-queue review --to receipts --dry-run --format json