]> granicus.if.org Git - neomutt/commit
Add index-format-hook and expando
authorKevin McCarthy <kevin@8t8.us>
Mon, 29 Oct 2018 20:45:02 +0000 (13:45 -0700)
committerRichard Russon <rich@flatcap.org>
Wed, 24 Apr 2019 11:20:39 +0000 (12:20 +0100)
commit84e53161353f7242bbb0898a01f49b19c7079613
tree1fd561c103561b95b06ec95c65515dbf12743c9b
parentd6e1defe3f97d0ed0d980b2194d2c51f7c9fb3e2
Add index-format-hook and expando

index-format-hook is used to allow dynamic insertion/evaluation of
format strings into $index_format.

It can be used, for example, to implement date formatting based on the
age of the message.

Add a new %@name@ expando to $index_format, which evaluates the
matching index-format-hooks with "name".

Co-authored-by: Richard Russon <rich@flatcap.org>
curs_lib.c
curs_lib.h
doc/manual.xml.head
hdrline.c
hook.c
hook.h
init.c
init.h