SYNOPSIS

       getmail i[-j] ...


DESCRIPTION

       Getmail  filters  its  input, which is assumed to be a mail folder, and
       produces an output which consists of those messages which are  selected
       by number from the command line.

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

       The arguments are of the form:

       i      Include the ith message.

       i-j    Include the ith message up to the jth one.


EXAMPLES

       To store the first ten messages from a folder at  the  end  of  another
       folder:

            getmail 1-10 < folder1 >> folder2


       To print messages 3,4,5,6 and 12 from a mail folder:

            getmail 3-6 12 < mailfile | mpt




SEE ALSO

       mailtrim(1), mp(1), classify(1)


BUGS

       Header  lines  which  are repeated in a message (such as Received) will
       have all but the last occurrences silently removed.



Sun UK North                      15 Oct 1987                       GETMAIL(1)

Man(1) output converted with man2html