szc(_at_)moorecap(_dot_)com (Simon Chan) writes:
I would like to know what I am doing wrong with my rc file. I would like to
redirect all successful production messages to /dev/null, and I can't seems
to get this to work. Enclosed is a copy of my rcfile and any help would
be appreciated.
Umm, what isn't working about it? Is the mail that should be dropped
still being delivered? Is it eating all your email? Is it mashing all
the messages that it deliveres into one big one?
How do you know (that is, what makes you say) that it isn't working?
...
PATH=/usr/bin:/usr/local/bin:/usr/ucb:/u/pkg/procmail/bin
UMASK=077
LOGFILE=$HOME/.procmailLog
VERBOSE=yes
What does the log show?
:0 fhw
| formail -I "From " -a "From "
Is there some reason you need to regenerate the "From " header? Does your
MTA emit a bogus one that you need to trash? Unless your MTA is broken
you almost certainly don't want to do this.
:0
* ^Subject:.*Daily Info.*of.*
/dev/null
The trailing ".*" is pointless, but otherwise this should work just fine.
Philip Guenther