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]...
FlagDescription
[MESSAGE_ID]… Message ID(s). If omitted, reads IDs from stdin when stdin is piped
FlagDescription
--search <SEARCH>Operate on messages matching search query
--yesSkip confirmation
--dry-runShow what would happen
--format <FORMAT>[possible values: table, json, jsonl, csv, ids]
-h, --helpPrint 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