nmh-workers
[Top] [All Lists]

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

2006-01-19 06:22:22
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


_______________________________________________
Nmh-workers mailing list
Nmh-workers@nongnu.org
http://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>