On 2011-11-08, Gregor Zattler wrote:
> Hi stardiviner,
> * stardiviner [08. Nov. 2011]:
> > => On [2011-11-08 11:40:18 +0100]:
> >> * stardiviner [08. Nov. 2011]:
> >>> Is there other way to set different *index_format* for mails ?
> >> 
> >> index_format describes the format of your index which shows
> >> (normally) several emails at once while message-hook deals with
> >> individual emails.  What should your index look like if there are
> >> different emails for which you want to have different
> >> index_formats?
> >> 
> > So it is impossible to set different index_format for messages ?
> 
> It's not possible to change the index format for individual
> emails in the index but you can colour different email entries
> differently.

You can also use conditional elements in index_format that will
print different pieces of information depending on the values of
other pieces of information.  This is explained in the mutt manual
in the "Conditionals" section.

As an example, I have this string as part of my index_format.

    %?X?*& ?

If the number of attachments (X) is non-zero, "*" is inserted.
Otherwise, " " is inserted.

Regards,
Gary

Reply via email to