Michael Coxe wants to:
cat /archives/oct98 | formail -ds procmail ./remove_header.rc > oct98
cat /archives/oct99 | formail -ds procmail ./remove_header.rc > oct99
etc., where:
"remove_header.rc" contains:
----------------------------
MAILDIR=/archives/processed
LOGFILE=$MAILDIR/procmail.log
LOCKFILE=$MAILDIR/.lockmail
VERBOSE=off
:0 # get rid of digest header
* ^From:.*(audities-errors|owner-audities-digest|Majordomo(_at_)hal).*
$MAILDIR/digest_headers
---------------------------
But finds:
Now the filter works fine ;> BUT...procmail doesn't pipe its output
back out to be sent "may99, nov99, etc. Instead it dumps it into my
INBOX (ie into $MAIL).
The smallest change to what you already have (which uses an
unnecessary cat process BTW :-) is to just put this line near the
top of remove_header.rc:
DEFAULT=|
You should probably also:
1. put in a line "SHELL=/bin/sh"
and
2. omit the assignment to LOCKFILE.
Cheers,
Stan
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail