nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] showing the n messages 'around' a particular message


From: Joel Reicher
Subject: Re: [Nmh-workers] showing the n messages 'around' a particular message
Date: Thu, 19 Jan 2006 22:10:22 +1100

> Joel Reicher wrote:
> > I believe this will work, and doesn't have the problem with gaps in
> > message numbers that kre's script does.
> 
> How about the following:
> 
> last=`mhpath first:$((2*n)) cur:$n|tail -1`
> last=${last##*/}
> scan $last:-$((2*n))

Wow. Super clever. Doesn't work if cur is off the end, unfortunately,
but that can be fixed with a special case if it matters.

Cheers,

        - Joel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]