=> On [2011-11-08 09:13:27 -0800]:
Gary Johnson Said:
> 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?*& ?
I have already tested, this %?n?new? only work in status_format, can not work
on index_format correctly.
here is my result:
I set them like this:
folder-hook =INBOX set index_format = '" %?n?new? %?o?old? %?d?del? %2C|%N
[%4Z] | %-10L %?H?[spam]? %10s %> %4c %[%I:%M %P %b/%d]"' # for macro "gi"new old del 9|0 [ O +] | VeryCD » subject: ....... new old del 9|0 [ O +] | VeryCD » subject: ....... new old del 9|0 [ O +] | VeryCD » subject: ....... new old del 9|0 [ O +] | VeryCD » subject: ....... new old del 9|0 [ O +] | VeryCD » subject: ....... > > If the number of attachments (X) is non-zero, "*" is inserted. > Otherwise, " " is inserted. > > Regards, > Gary -- stardiviner GPG: 5D9F64D8 Twitter: @numbchild http://stardiviner.dyndns-blog.com/author.html
signature.asc
Description: Digital signature
