4 spool
=/var
/spool
/mail
/${USER}
6 [ -n "$1" ] && spool
="$1"
8 [ ! -f "$spool" ] && echo "0 - 0 - 0" && exit
10 msg
=`cat ${spool} | grep -ic ^Message-ID:`
11 readm
=`cat ${spool} | grep -c ^Status:\ RO`
12 fakem
=`cat ${spool} | grep -ic ^Content-Type:\ Message.rfc`
14 msg
=`expr ${msg} - ${fakem}`
15 newm
=`expr ${msg} - ${readm}`
17 echo "${newm} - ${msg} - ${readm}"