Files
aerc-fork-mirror/contrib
Robin Jarry a5c4f5d316 colorize: handle spaces in styleset
Avoid failure when the styleset [viewer] section contains spaces:

  ~$ cat foo
  [viewer]
  url.fg = #ffffaf
  url.underline = true
  header.fg = #af87ff
  signature.fg = #af87ff
  diff_meta.fg = #ffffff
  diff_meta.bold = true
  diff_chunk.fg = #00cdcd
  diff_add.fg = #00cd00
  diff_del.fg = #cd0000
  quote_1.fg = #5fafff
  quote_2.fg = #ff8700
  quote_3.fg = #af87ff
  quote_4.fg = #ff5fd7
  quote_x.fg = #808080
  ~$ ./colorize -s foo < bar.eml
  error: invalid style attribute 'fg '

Be more restrictive with what characters are part of a style attribute.

Add test styleset with as much weirdness as possible. Update vectors
accordingly. Update sendemail-validate hook to export pedantic CFLAGS.

Reported-by: Tristan Partin <tristan@partin.io>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Reviewed-by: Tristan Partin <tristan@partin.io>
Tested-by: Tristan Partin <tristan@partin.io>
2023-09-04 15:10:06 +02:00
..
2022-03-07 09:36:05 +01:00
2022-12-07 15:16:02 +01:00
2023-08-30 22:10:20 +02:00
2022-10-20 00:29:16 +02:00