chainmail draft update
Replace a draft with a new version: the new version is saved and the old one deleted. The new version has a new ref, which is printed; the old ref is gone.
It takes send's recipient, subject, body and attachment options, without --account (the draft's account is used) and without --draft, --dry-run or --idempotency-key. The whole message is replaced, so give every recipient, the subject and the body again. A reply saved as a draft stays a reply.
Usage
chainmail draft update <ref> [flags]
Examples
chainmail draft update cm1:work:Drafts:3:9 --to alice@example.com --subject "Notes, v2" --body-file notes.md
Flags
--attach stringArray attach this file (repeatable)
--bcc stringArray a blind-copied recipient, kept out of the message itself (repeatable)
--body string the body as Markdown, or - to read it from stdin
--body-file string read the Markdown body from this file
--cc stringArray a copied recipient (repeatable)
--html-file string send this HTML file as the body, with --body as its text part when given
--inline stringArray show image file F inline where the body refers to NAME, as NAME=F (repeatable)
--no-signature leave out the account's signature
--subject string the subject line (required)
--text send the body as plain text instead of Markdown
--to stringArray a recipient, "Name <a@b>" or "a@b" (repeatable)
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)