Skip to content

mxr archive

Generated from mxr archive --help. Edit the clap definitions in crates/daemon/src/cli/ and re-run npm run build in site/ to regenerate.

Archive a message (remove from inbox)

mxr archive [OPTIONS] [MESSAGE_ID]...
Flag Description
[MESSAGE_ID] … Message ID(s). If omitted, reads IDs from stdin when stdin is piped
Flag Description
--search <SEARCH> Operate on messages matching search query
--account <ACCOUNT>
--yes Skip confirmation
--dry-run Show what would happen
--async Run as a daemon-side background job and poll with mxr jobs
--format <FORMAT> [possible values: table, json, jsonl, csv, ids]
-h, --help Print help

Clear mail from the inbox without deleting it. Always dry-run bulk queries first.

Terminal window
mxr archive MESSAGE_ID
mxr archive --search 'label:newsletters older_than:30d' --dry-run