[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mutt-users
Subject:    Re: In =?UTF-8?Q?index=5Fformat=2C=20what=20does=20=25=3F=20mean?=  =?UTF-8?Q?=3F?=
From:       Christian Brabandt <cblists () 256bit ! org>
Date:       2015-06-18 10:28:26
Message-ID: 54087bc4a52802f7a35e090967710c40 () www ! linetics ! de
[Download RAW message or body]

Am 2015-06-18 12:23, schrieb Alan Mackenzie:
> Hello, mutt.
> 
> I'm using mutt 1.5.23.
> 
> The default value of the configuration variable index_format is
> 
>     "%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s".
> 
> My personal value is similar.  The construct "(%?l?%4l&%4c?)" puzzles
> me.  The parentheses are literal characters, but what do all the ?s
> mean?  In practice, this displays the number of lines in the email, 
> what
> one would expect from a simple %l.  I also have the feeling that the &
> is not a literal character either.  What does it mean?
> 
> I've looked in the manual, at the section documenting index_format, but
> the ?s aren't explained there.  I've also checked the printf(3) man
> page, but there isn't a single ? in it.
> 
> Elucidation would be much appreciated.  Thanks!

This is described briefly in the manual below status_format:

<snip>
You can also switch between two strings using the following construct:

%?<sequence_char>?<if_string>&<else_string>?

If the value of sequence_char is non-zero, if_string will be expanded, 
otherwise else_string will be expanded.
</snip>

Best,
Christian
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic