* On 05 Jan 2011, Toby Cubitt wrote: 
> 
> Yes, but how would you use this to e.g. print only the time for all
> emails received today, but print the date for all emails received
> yesterday or earlier? A split point of 24h is no use. If it's currently

That's what nested_if is for.  Here is the date string from my $index_format:

%<[1y?%<[1w?%<[1d?%[ %H:%M]&%[%a %d]>&%[%b %d]>&%[%y%m%d]>

that is,
if < 1y:
        if < 1w:
                if < 1d:
                        %H:%M
                else:
                        # >= 1d
                        %a %d
        else:  
                # >= 1w
                %b %d
else:
        # >= 1y
        %y%m%d

It does work, or I've been misreading my index for the last 5 years. ;)

-- 
David Champion  *  d...@uchicago.edu  *  IT Services  *  University of Chicago

Reply via email to