Re: index_format setting to show yr

2008-06-21 Thread SK
On Fri, Jun 20, 2008 at 7:42 PM, David Champion <[EMAIL PROTECTED]> wrote:
>> Is there any way to setup mutt (the date_format variable?) such that
>> in the index view, the year is shown only if the year of the message
>> is different from the current year? The default "%d"  shows only the
>> "Month date".
>
> You need the "date_conditional" patch to make date formats conditional
> upon relative date offsets, but even so you can only say "in the last 6
> months" or the like -- not "in the current year".

Thanks David, the date_conditional patch did the work!


Re: index_format setting to show yr

2008-06-20 Thread Michael Kjorling
On 20 Jun 2008 12:42 -0500, by [EMAIL PROTECTED] (David Champion):
> You need the "date_conditional" patch to make date formats conditional
> upon relative date offsets, but even so you can only say "in the last 6
> months" or the like -- not "in the current year".

I haven't looked at this particular patch and the functionality it
offers, but couldn't one come pretty close with a combination of that
and muttrc GNU date shell/backtick expansions?

Granted, it would be something of a kludge, but I don't see why it
couldn't be made to work. (date's +%-j format might come in handy.)

-- 
Michael Kjörling .. [EMAIL PROTECTED] .. http://michael.kjorling.se
* . No bird soars too high if he soars with his own wings . *
* ENCRYPTED email preferred -- OpenPGP key ID: 0x 758F8749 BDE9ADA6 *
* ASCII Ribbon Campaign: Against HTML mail, proprietary attachments *



signature.asc
Description: Digital signature


Re: index_format setting to show yr

2008-06-20 Thread David Champion
> Is there any way to setup mutt (the date_format variable?) such that
> in the index view, the year is shown only if the year of the message
> is different from the current year? The default "%d"  shows only the
> "Month date".

You need the "date_conditional" patch to make date formats conditional
upon relative date offsets, but even so you can only say "in the last 6
months" or the like -- not "in the current year".

-- 
 -D.[EMAIL PROTECTED]NSITUniversity of Chicago


index_format setting to show yr

2008-06-12 Thread SK
Hi,

Is there any way to setup mutt (the date_format variable?) such that
in the index view, the year is shown only if the year of the message
is different from the current year? The default "%d"  shows only the
"Month date".

Thanks,
SK