wmclockmon: fix typos pointed out by Lintian.
[dockapps.git] / wmjmail / src / mailchk
blobbbd71ddd4759845f30f2a7f4305459affa72207e
1 #!/bin/bash
2 ################
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}"