procmail
[Top] [All Lists]

Hung up while trying to scrub Yahoo advertisements...

1998-03-06 00:23:54

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

which does indeed work as designed--output contains a message from
yahoo.com with the closing advertisement removed.

But if .procmailrc contains this:

        :0
        * From:.*yahoo
        | sed -f test.sed | sed -f test2.sed

then the mail simply disappears forever. Log sez:

procmail: Assigning "SHELL=/bin/bash"
procmail: Match on "From:.*yahoo"
procmail: Assigning "LASTFOLDER= sed -f test.sed | sed -f test2.sed"
From bighouse(_at_)type2(_dot_)com  Thu Mar  5 23:35:05 1998
Subject: Freemail Ad Scrub
 Folder:  sed -f test.sed | sed -f test2.sed
2125
procmail: Notified comsat: "webmaster@: sed -f test.sed | sed -f test2.sed"
procmail: Executing " sed -f test.sed | sed -f test2.sed"

And that's it. The mail dropped off the face of the Earth. Any help
appreciated.

--Ken
  68 Westy, Admin --type2-- The Volkswagen Bus Mailing List