Today I updated the package of mutt which is stored upon my apt-get repository - the Lenny repository now contains an updated copy of mutt & mutt-ng.
This package is synced from sid and contains the addition of a small patch to update the sidebar handling so that it is possible to show only folders with new mail (Before/After)
I've talked about this patch before, and the mutt sidebar generally, so I'll not repeat myself.
Instead I will share this simple mutt tip:
# # Specify which mails to show when changing folder: # folder-hook . push '<limit>((~N|~O)!~D)|(~d<1d!~Q)<enter>'
What does this do? When changing folder it limits the display of messages to those which match either pattern:
Pattern | Meaning |
---|---|
(~N|~O)!~D) |
That is "New" or "Old" messages which haven't been deleted. |
(~d<1d!~Q) |
Messages received in the past day which haven't been replied to. |
(The first pattern could be simplified but I like to be explicit and match "N"ew and "O"ld messages directly.)
I also have the following macros setup so I can type ".a" to view all messages in the current folder, ".t" to view only messages received today, ".n" to view only new messages, and ".y" to view all messages received yesterday:
macro index .n "l~N\n" macro index .a "l~A\n" macro index .t "l~d<1d\n" macro index .y "l~d<2d ~d>1d\n"
ObFilm: Dead Like Me
Tags: mutt, mutt-ng 4 comments