procmail
[Top] [All Lists]

Re: Another good one for your Procmail spam filter

1997-04-12 18:13:00

The only way I can currently get the To: header from a -rzvt at the moment
is like this.

  cat /tmp/bla3 | formail -I "Reply-To:" -U "From:" -R "To:" "From:" |
formail -rtzx "To:"


This is why my solution (which you are no doubt familiar with :-) has that
'-X From:' in it:

  formail -I From: -R To: From: -X From: | formail -rtzx To:

The second formail only picks up the From: header.  *Nothing* else.  This
means that I don't have to worry about interaction with any other headers.
As long as we're using two calls to formail, might as well do something
useful with it to cut down on the number of flags.

-- Lars

---
Lars Kellogg-Stedman * lars(_at_)bu(_dot_)edu * (617)353-8277
Office of Information Technology, Boston University