Re: set different index_format for mails

2011-11-14 Thread stardiviner
is a good idea. I want to set index_format for different type mails like: new, deleted, replied, signed, encrypted ... But I do not know how to use those value like ~N ~R ~D ~g ~G etc. Do you know how to pass them to script ? Those are patterns, you can't pass them. You can pass the format strings

Re: set different index_format for mails

2011-11-09 Thread stardiviner
= 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

Re: set different index_format for mails

2011-11-09 Thread Ed Blackman
command could then use that to emit different formats for different messages. For example, I have a script called format_date, and have this in .muttrc: set index_format=/path/to/format_date '%[%s]' '%%s' | This really is a good idea. I want to set index_format for different type mails like

Re: set different index_format for mails

2011-11-09 Thread Gary Johnson
On 2011-11-09, stardiviner wrote: = On [2011-11-08 09:13:27 -0800]: Gary Johnson Said: 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

Re: set different index_format for mails

2011-11-08 Thread Gregor Zattler
' # for macro gi 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

Re: set different index_format for mails

2011-11-08 Thread stardiviner
index_format = ' %H %C| [%4Z] %-13L » %s % %4c' folder-hook =INBOX set index_format = ' %H %C| %N [%4Z] %-13L %s % %4c' # for macro gi Is there other way to set different *index_format* for mails ? index_format describes the format of your index which shows (normally) several

Re: set different index_format for mails

2011-11-08 Thread Gregor Zattler
Hi stardiviner, * stardiviner numbch...@gmail.com [08. Nov. 2011]: = On [2011-11-08 11:40:18 +0100]: * stardiviner numbch...@gmail.com [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

Re: set different index_format for mails

2011-11-08 Thread stardiviner
= On [2011-11-08 14:13:05 +0100]: Gregor Zattler Said: Hi stardiviner, * stardiviner numbch...@gmail.com [08. Nov. 2011]: = On [2011-11-08 11:40:18 +0100]: * stardiviner numbch...@gmail.com [08. Nov. 2011]: Is there other way to set different *index_format* for mails ? index_format

Re: set different index_format for mails

2011-11-08 Thread Ed Blackman
On Tue, Nov 08, 2011 at 02:13:05PM +0100, Gregor Zattler wrote: It's not possible to change the index format for individual emails in the index but you can colour different email entries differently. Actually, it is. If you set index_format to a shell command that ends with a pipe, that Mutt

Re: set different index_format for mails

2011-11-08 Thread Gary Johnson
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

Re: set different index_format for mails

2011-11-08 Thread Chip Camden
Quoth Gary Johnson on Tuesday, 08 November 2011: 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

Re: set different index_format for mails

2011-11-08 Thread David Champion
* On 08 Nov 2011, Chip Camden wrote: 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. That doesn't seem to work for me (it always prints the *). What versions

Re: set different index_format for mails

2011-11-08 Thread Gary Johnson
On 2011-11-08, Chip Camden wrote: Quoth Gary Johnson on Tuesday, 08 November 2011: 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. That doesn't seem to work for me (it

Re: set different index_format for mails

2011-11-08 Thread David Champion
* On 08 Nov 2011, Gary Johnson wrote: I don't know--I've been out of the development loop for a while. I've used conditionals in my status_format for a long time, at least as far back as 1.4.2.2i. I think the %X sequence may be fairly recent, though, introduced in 1.5.something. I

Re: set different index_format for mails

2011-11-08 Thread stardiviner
formats for different messages. For example, I have a script called format_date, and have this in .muttrc: set index_format=/path/to/format_date '%[%s]' '%%s' | This really is a good idea. I want to set index_format for different type mails like: new, deleted, replied, signed, encrypted

Re: set different index_format for mails

2011-11-08 Thread stardiviner
= 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

set different index_format for mails

2011-11-07 Thread stardiviner
*index_format*. like this: folder-hook . set index_format = ' %H %C| [%4Z] %-13L » %s % %4c' folder-hook =INBOX set index_format = ' %H %C| %N [%4Z] %-13L %s % %4c' # for macro gi Is there other way to set different *index_format* for mails ? If you have good idea, please tell