procmail
[Top] [All Lists]

Re: Hung up while trying to scrub Yahoo advertisements...

1998-03-06 02:05:13
|Fri 98-03-06 Ken Hooper <bighouse(_at_)type2(_dot_)com> list.procmail
| I've busted my brain.
| 
| The file test.sed contains this:
| 
|       /^ *DO YOU YAHOO!?/q
| 
| The file test2.sed contains this:
| 
|       $d
| 
| .procmailrc contains this:
| 
|       :0
|       * From:.*yahoo
|       | sed -f test.sed | sed -f test2.sed > output

I'm no sed wizard, but hre is one way to delete lines that you
don't want:

:0 fbw
| $GREP -v \
  -e "MATCH-IT" \
  -e "ANOTHER-LINE" \
  -e "AND MORE"

jari