procmail
[Top] [All Lists]

Re: formail -> procmail -> formail??

2000-11-27 02:45:06
On Sun, 26 Nov 2000, Stan Ryckman wrote:

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
---------------------------

I would also add that $MAILDIR/ on the action line is redundant.
When MAILDIR is assigned, all relative paths in action lines are relative
to $MAILDIR, thus it need not be specified in the action line.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>