At 10:34 +0100 10 Jan 2002, Hanspeter Roth <[EMAIL PROTECTED]> wrote: > Is it possible to have lines with different index_formats in the > index? I would like to display a different date format for messages > sent within the last 24 hours.
I have a patch that does almost that: http://schrab.com/aaron/mutt/patch-1.3.24.ats.date_optional.1 That should apply to pretty much any version of mutt, since it was originally done when 0.96.6 was current. I just recently updated it to use the PATCHES file found in recent development versions. With it %?[ and %?( in index_format are treated as conditionals, if the relevant time is less than 12 hours in the past or future, the part before the next & will be evaluated, otherwise the part between that and the next ? is evaluated. So, I use as my index_format: set index_format='%4C %Z %?[?%[%H:%M]&%[%m/%d]? %-15.15F (%5l) %s' It would be quite simple to modify it for different periods of time. I'll also note that that index_format looks *extremely* bad with an unpatched mutt. -- Aaron Schrab [EMAIL PROTECTED] http://www.execpc.com/~aarons/ "It is easier to port a shell than a shell script." --Larry Wall
msg22865/pgp00000.pgp
Description: PGP signature