#!/afs/athena/contrib/perl/p

while (@ARGV) {
    $file = shift @ARGV;
    open(FILE,"<$file") || die "Can't open file $file: $!";
    $header = 1;
#    print "--------------------------------------------------------------------------------\n";
    print "From nntp-digest.pl\n";
    while (<FILE>) {
	print if ! $header;
	$header = 0 if /^$/;
	print if /^From:|^Date:|^Subject:|^$/;
    }
    close(FILE);
    print "\n";
}
