Skip to main content

chainmail attachment

Download one attachment by the part number get lists. --out names the file to write; --out - writes to stdout, which must not be a terminal.

Usage​

chainmail attachment <ref> <part> [flags]

Examples​

chainmail attachment cm1:work:INBOX:7:42 2 --out invoice.pdf
chainmail attachment cm1:work:INBOX:7:42 2 --out - > invoice.pdf

Flags​

--out string file to write, or - for stdout when it is not a terminal (required)

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​