Sorting mail files chronologically on Unix

Leisner.henr801c at xerox.com Leisner.henr801c at xerox.com
Thu Apr 25 14:01:05 AEST 1991


I'm writing a program to convert mail files from one format (on one system) to
another.

The source mail file file has mail notes in a  well-defined format, which are
not necessarily sorted chronologically.

There is a sort command (in the mail tool) on the source system, which sorts a
table of contents file chronologically.  The mail file is untouched.

How do I sort a mailfile chronologically on Unix?  I looked in the
documentation for Mail (the man pages) and saw nothing about sorting.  Figured
this is useful and someone already did this...

(BTW -- is there an Xwindows tool to read Unix mail files and does it have the
source code to decode the mail file?  What is it called?  (I'm not a big
Xwindows user yet).

marty
(Knowledge is useful in the Information Age)
(Software is mindstuff.  It is the hardest activity created by man)

ARPA:	leisner.henr801c at xerox.com
NS:  leisner:henr801c:xerox
UUCP:	hplabs!arisia!leisner



More information about the Comp.unix.questions mailing list