procmail
[Top] [All Lists]

Re: Another good one for your Procmail spam filter

1997-04-12 15:28:00
Swap the From: and the To: and use the same approach?

This will get you what you want:

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

Beautiful, isn't it? :)

That deletes the From: header, renames the To: header to From:, and then
pipes it into a second formail to grab the return address from the new
From: header.

-- Lars

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

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