Hello, Michael. On Thu, Jun 18, 2015 at 12:41:22PM +0200, Michael Tatge wrote: > Hi Allen,
> * On Thu, Jun 18, 2015 10:23AM +0000 Alan Mackenzie (a...@muc.de) muttered: > > The default value of the configuration variable index_format is > > "%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s". > > The construct "(%?l?%4l&%4c?)" puzzles me. The parentheses are > > literal characters, but what do all the ?s mean? > That's a conditional. > %?l?%4l&%4c? > %?<sequence_char>?<if_string>&<else_string>? > "If %l (is nonzero) then print %4l otherwise %4c" > http://www.mutt.org/doc/devel/manual.html#formatstrings-conditionals OK, I've got that now. > So: > %l number of lines in the message (does not work with maildir, mh, > %and possibly IMAP folders) > and because of that %c is printed when the line count is not available. > %c number of characters (bytes) in the message (vulgo message size) > For instance, I'm using "%?M?#%3M&%4c?" in my $index_format. What it > does is left as an exercise for the reader. :) It tells you how many messages there are in a thread, should that thread be collapsed. Otherwise it's how big the message is. So, I got three straight answers to a straight question, within a few minutes. This is a great group! Thanks. > HTH, > Michael > -- > PGP-Key-ID: EEE7D043 > Jabber: in...@jabber.de -- Alan Mackenzie (Nuremberg, Germany).