13 lines
333 B
Plaintext
13 lines
333 B
Plaintext
|
# I wrote up a really quick mailchk to work with Maildir/ mail spools, and
|
||
|
# I figured you might want a copy:
|
||
|
#
|
||
|
#
|
||
|
#!/bin/bash
|
||
|
################
|
||
|
|
||
|
dir=${HOME}/Maildir
|
||
|
msg=`ls -1 ${dir}/cur ${dir}/new | egrep -v '(cur:|new:|^$)' |wc -l`
|
||
|
readm=`ls -1 ${dir}/cur | wc -l`
|
||
|
newm=`expr ${msg} - ${readm}`
|
||
|
echo "${newm} - ${msg} - ${readm}"
|