54714024ef
From https://web.archive.org/web/20070101114026/http://voltar.org/dockapps/wmjmail-1.6.tgz
13 lines
333 B
Plaintext
Executable file
13 lines
333 B
Plaintext
Executable file
# 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}"
|