mailstat

Feedback is extremely important when using procmail. Mistakes may (and do) happen and your .procmailrc may have something that doesn't work quite as you expected. This is where mailstat will save your life (or at least your mail.)

mailstat is a nifty program that comes with procmail. It reads your .maillog file, give you a summary and then renames it as maillog.old.

You should put mailstat at the end of your .login (for csh) or .kshrc (for ksh)

mailstat -s $HOME/.maillog Here's an output from mailstats If you ever have errors of any kind they will show up with mailstats.

  Total  Number Folder
  -----  ------ ------
  87531       6 /dev/null
   4798       1 acm
   4490       2 firewalls
  26975       1 security
   3313       1 mail/mutt
    559       1 system/epage
  12989       4 system/postmaster
If things are messed up really badly you can always set
VERBOSE=yes
in your .procmailrc.

If you don't use mailstat you deserve anything you get (or don't get, as the case may be)


Back: The .procmailrc Top Next: Simple Filtering

j g r o s s @ s t i m p y . n e t