On Fri, Dec 19, 2014 at 08:59:01AM +1100, Cameron Simpson wrote:
On 18Dec2014 16:50, Bernard Massot <bmas...@free.fr> wrote:
Dates in the index are built following the index_format variable. For
this purpose, index_format uses the strftime function's string
expansion mechanism, which doesn't provide means to show time as UTC.
However the "date" program can build UTC dates, and mutt can use
external programs to build configuration variables.
[...]
_If_ you went that way (for the index performance; as Bernard points
out his approach invokes an outside script for every index line -
though probably only for every _displayed_ index line, not the whole
mail folder at once),
I use an external script to set index_format. My script varies the time
display based on how old the message is: messages in the last 24 hours
display the detailed time (eg, '6:41pm'), messages in the last week show
weekday and abbreviated time (eg, 'Thu 6pm'), and so on.
I don't need to invoke date, as everything I want to do can be
accomplished with shell-internal math, but it's still running my script
for every displayed index line.
I can't visually tell the difference between turning the external script
invocation off (aside from the loss of my variable time format) or
keeping it on. This is on Linux on a ~7 year old system, no brand new
speed daemon. So the OP might want to try it.
Note that Windows is reportedly much slower to create processes than
Linux and probably OSX, so Windows users of mutt might see a slowdown
using an external script where the same muttrc under Linux on the same
machine might not, but modern systems are so ridiculously fast that it's
worth a try anyway.
--
Ed Blackman