nmh-workers
[Top] [All Lists]

Re: sorting messages by thread

2002-09-10 05:58:45
Hi,

* Neil W Rickert <rickert+nmh(_at_)cs(_dot_)niu(_dot_)edu> [020910 15:11]:
Moshe Kaminsky <kaminsky(_at_)wisdom(_dot_)weizmann(_dot_)ac(_dot_)il> wrote:

I'm new to mh, and I have several questions. Please forgive me if
they're stupid.

My first question is this: Is it possible to sort messages by threads
(like in Mutt, for instance; the replies to each mail appear immediately
after the mail itself). I didn't find any obvious way to do it with
sortm. If not possible directly, maybe there is some script that does
it?

      sortm -textfield subject -limit 0

Thanks for the answer, but that doesn't do what I meant. First, although
it recognizes the 'Re:' part in the subject and ignores it, this is not
the only mangling that may be applied to the subject (for instance,
there are people who like to add the name of the mailing list in front
of the subject). Also, when replying to a reply, there is usually only
one 'Re: ', so you don't get that reply in the right place. Finally,
apart from the threads, I would like the mail to be sorted by date. 

What I had in mind is something that uses the `In-Reply-To' header
field to sort the replies.


 -NWR



Moshe


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