Skip to main content

chainmail archive

Move messages out of the inbox to the account's archive. Refs come from the arguments, or one per line on stdin when the only argument is -.

Usage​

chainmail archive <ref>...

Examples​

chainmail archive cm1:work:INBOX:7:42
# archive everything a search finds
chainmail search from:newsletter --output json | jq -r '.rows[].ref' | chainmail archive -

Global flags​

--output string output format: json or table (default $CHAINMAIL_OUTPUT, then cli.toml, then table on a terminal, json otherwise)
--socket string daemon socket (default $CHAINMAIL_SOCKET, then cli.toml, then /run/chainmail/chainmail.sock)

See also​