SYNOPSIS

       classify [ -i ]


DESCRIPTION

       Classify  filters  its input, which is assumed to be a mail folder, and
       produces an output which consists of the same messages sorted  by  sub-
       ject.

       The  output  resulting from re-ordering can be processed as a folder by
       the mail system in the usual ways.

       An option is available to produce an index for the folder instead of  a
       new folder.  The index is always in alphabetical order.  If the file is
       re-organised first then the items in the index should be  in  ascending
       number sequence.


OPTIONS

       The possible options are:

       -i     Instead of producing a mail folder as output, produce a readable
              index.  Index lines look something like this:

              Subject-line  . . . . . . . . . . . . .  12; 13, 14, 15

              where the number(s) before  the  semi-colon  represent  messages
              with  the  given subject line, and the number(s) after it repre-
              sent messages which refer to the given subject line.


EXAMPLES

       To organise a mail folder alphabetically by subject-line:

            classify < mailfile > /tmp/rhubarb
            mv /tmp/rhubarb mailfile


       To print a table of contents for a mail file two-up on a laserwriter:

            classify -i < mailfile | enscript -q -2r -f Courier7



SEE ALSO

       getmail(1), mailtrim(1), mp(1)


BUGS

       Header lines which are repeated in a message (such  as  Received)  will
       have  all  but  the  last occurrences silently removed.  Subjects which
       generate index lines too long for the output line will produce  erratic
       output.  There is no control over output line width.



Sun UK North                      19 Oct 1987                      CLASSIFY(1)

Man(1) output converted with man2html