Using mixmaster in Mutt
Does the folder need a trailing slash? like
Deleted section in Display recipient instead of sender in "Sent" folder view
This section was originally under `Display recipient instead of sender in "Sent" folder view`
I removed it because there's a much simpler way, but this might be useful for some edge cases, so feel free to put it back (with a caveat that it's sub-optimal). The deleted section follows.
The "columns" of the index can be configured through the
index_format variable. Its syntax is documented in the
muttrc man page. The values of our concern are
%t (recipient) and
To change the columns according to the current folder, we need to use a hook:
folder-hook .*[sS]ent.* 'set index_format="%2C | %Z [%d] %-30.30t (%-4.4c) %?M?<%M> ?%s"' folder-hook ! .*[sS]ent.* 'set index_format="%2C | %Z [%d] %-30.30F (%-4.4c) %?M?<%M> ?%s"'
The exclamation mark means everything that does not match the following regex. Of course you can change the index_format following your taste, and the regular expression if the folder does not have Sent nor sent in its name.
Let us centralize the settings, it will simplify future tweaking.
set my_index_format_pre='set index_format="%2C | %Z [%d] %-30.30' set my_index_format_post=' (%-4.4c) %?M?<%M> ?%s"' folder-hook .*[sS]ent.* "$my_index_format_pre"t"$my_index_format_post" folder-hook ! .*[sS]ent.* "$my_index_format_pre"F"$my_index_format_post"
As it stands neomutt is still a drop-in replacement for mutt, apart from the changed names and paths (mutt -> neomutt). However, as the projects continue to diverge, this may change and require a separate article (Neovim is similar). -- Alad (talk) 07:14, 26 October 2017 (UTC)