[svlug] Counting email
joey at kitenet.net
Wed May 3 13:02:25 PDT 2000
Drew Bertola wrote:
> Can anyone tell me the preferred method for counting the exact number
> of messages in /var/spool/mail/$USER ? I've been been using
> grep "^FROM " | wc -l
> but it shows some minor inaccuracies.
joey at gumdrop:~>countmail
SEVENTY-THREE NEW MAIL MESSAGES!
countmail is from bsdgames. Less obnoxiously, just use /usr/bin/from, from
bsdmainutils (that's the debian package name, I don't know what other
distributions call it).
see shy jo
More information about the svlug