]> gitweb.michael.orlitzky.com - mutt.git/blob - hooks
d398e252dbaaa68679d8dddd56930d5615cda274
[mutt.git] / hooks
1 folder-hook . "set sort=date-received"
2
3 # Sort any mailing list messages by thread.
4 # This assumes, of course, that all of your
5 # mailing list messages are stored under /lists/.
6 folder-hook ^lists/ "set sort=threads"
7
8 # The "33" is a magic number, totaling the number of characters in the
9 # non-subject/author fields.
10 #
11 # We need a special rule for the "Sent" folder so it shows the "To"
12 # address instead of the "From" address.
13 #
14 folder-hook .*[sS]ent.* 'set my_col_from = `echo $((30 * ($(tput cols)-33) / 100))`; set my_col_subject = `echo $((70 * ($(tput cols)-33) / 100))`; set index_format="%D | %Z %-$my_col_from.${my_col_from}t %-$my_col_subject.${my_col_subject}s (%-4.4c)"'
15
16 folder-hook ! .*[sS]ent.* 'set my_col_from = `echo $((30 * ($(tput cols)-33) / 100))`; set my_col_subject = `echo $((70 * ($(tput cols)-33) / 100))`; set index_format="%D | %Z %-$my_col_from.${my_col_from}F %-$my_col_subject.${my_col_subject}s (%-4.4c)"'