1 # I wrote up a really quick mailchk to work with Maildir/ mail spools, and
2 # I figured you might want a copy:
9 msg=`ls -1 ${dir}/cur ${dir}/new | egrep -v '(cur:|new:|^$)' |wc -l`
10 readm=`ls -1 ${dir}/cur | wc -l`
11 newm=`expr ${msg} - ${readm}`
12 echo "${newm} - ${msg} - ${readm}"