Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!paperboy!hsdndev!cmcl2!adm!news From: Leisner.henr801c@xerox.com Newsgroups: comp.unix.questions Subject: Sorting mail files chronologically on Unix Message-ID: <26667@adm.brl.mil> Date: 25 Apr 91 04:01:05 GMT Sender: news@adm.brl.mil Lines: 25 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@xerox.com NS: leisner:henr801c:xerox UUCP: hplabs!arisia!leisner