<<< Date Index >>>     <<< Thread Index >>>

Re: Collapsed Threads and Status Flags



On 18/05/04 14.47, Wilkinson, Alex wrote:
>       On Fri, Feb 06, 2004 at 08:00:36PM +1030, Mads Laursen wrote:
[snip]
> Okay, I've been using this index_format for a while now and its awesome. 
> Thankyou.
> However, can you explain to me what the '?' do in the string %?M?%M> ?%s ?
> And why do you need 2 %?M  ? I understand the rest except for %?M?%M>. I know 
> what %M
> does on its own but not with all the question marks etc.

%?<SOMETHING>?<OPTIONAL>? is a conditional construct. Quoting man
muttrc:

  %?<sequence_char>?<optional_string>?
  where sequence_char is a character from the table above, and
  optional_string  is  the  string  you would like printed if sta-
  tus_char is nonzero.  optional_string may contain other sequence
  as well as normal text, but you may not nest optional
  strings.


> Another question in respect to the afforementioned:
> 
> Is it possible to display the output of %?M?%M> in a different
> colour ?

I'd actually like to know that myself. You would need to be able to
embed colorcodes into the format string, or construct some very
special regexes in the color statements.

> I already have 'color index brightgreen default ~v', but it'd be cool to have
> the number of msgs in the thread highlighted in a different colour. Is this
> possible ?

My gut feeling is that you can't do it in mutt, but I for one would
not mind at all if you could.

/dossen
-- 
Common sense is the collection of prejudices acquired by age eighteen.
                -- Albert Einstein

Attachment: pgpKHMSiJZHf6.pgp
Description: PGP signature