#!/bin/sh # list_msgs # Andrew Davison (ad@ratree.psu.ac.th), August 1997 # List the "From: ", "Subject: " and "Date: " lines # of each mail message. total=`from | wc -l` count=1 echo while [ $count -le $total ] do readmsg -h $count | \ awk -f heads.awk | \ egrep '^From: |^Subject: |^Date: ' echo count=`expr $count + 1` done