parsimony/internal/cli
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi eccd82af69 feat(cli): escape control characters from mail, refuse the token over plain http
- printable() shows C0, DEL and C1 control characters (except tab and newline; CRLF counts
  as a newline) as \xNN / \uNNNN, applied to every table cell, archive show, member
  listings, import reports and error text, so an escape sequence in a subject cannot
  drive the terminal.
- The client refuses to send the bearer token over http:// to a non-loopback host unless
  --insecure is given: usage error, exit 2. localhost, 127.0.0.0/8 and ::1 stay allowed.
  Offline commands (dkim) never build the client, so they are not affected.
- Tests: the helper, ESC sequences in archive ls/show, held ls, queue ls, list/member names,
  API errors and import reports; the URL check by flag and PARSIMONY_URL. README updated.
2026-11-10 11:57:58 +01:00
..
cli.go feat(cli): escape control characters from mail, refuse the token over plain http 2026-11-10 11:57:58 +01:00
cli_test.go feat(cli): escape control characters from mail, refuse the token over plain http 2026-11-10 11:57:58 +01:00
commands.go feat(cli): escape control characters from mail, refuse the token over plain http 2026-11-10 11:57:58 +01:00
dkim.go feat(cli): dkim keygen, record and check 2026-11-09 20:01:36 +01:00