I recently moved Poco to a new PC, and downloaded the newest release of Poco. I tried setting up my "old" "Remove Yahoo Ads" script (that I got from Austin in the old forums), but I cannot get it to work.

I'm trying to set it up as an OnDisplay event, but the ads are still there when I display the message.

Is anyone using the "remove yahoo ads" script, and if you are, can you point me to the correct setup of this script?

{ This script will search the message for the beginning and ending { banner tags and then delete the ad from the message.

{ keep you from running the script in weird modes If #PocoScriptMode = 5 Then RunScript If #PocoScriptMode = 1 Then RunScript If #PocoScriptMode = 121 Then RunScript AddStrings $msg "The " $PocoScriptName " script can only run manually or on incoming messages." MessageBox $msg Exit

:RunScript { set the DomainTrigger (aka @yahoogroups.com) and convert it to lowercase Set $DomainTrigger "@yahoogroups.com" Lowercase $DomainTrigger

{ Some basic error checking. { Exit if the begin tag isn't found or if the end tag comes before the begin tag. IsNumber &IsNumber #BeginTextLine Not &IsNumber if &IsNumber then Exit if #EndTextLine < #BeginTextLine then Exit

{ If both tags found in order, grab a scalpel and prepare for ad extraction.

{ Copy our ending line value and subtract to get the number of lines { we want to delete. Set #LinesToDelete #EndTextLine SubIntegers #LinesToDelete #BeginTextLine

{ increase it by 3 (since the first line counts, too and we want to get rid of {the stupid <p> that yahoo adds) and delete the lines Set #Padding 3 AddIntegers #LinesToDelete #Padding DeleteLine $body #BeginTextLine #LinesToDelete

:SaveMessage { if we're running manually, we'll need extra code to save back to the mailbox, otherwise just exit If #PocoScriptMode = 1 Then Exit If #PocoScriptMode = 121 Then Exit { now we just have to save the message back to the box {AppendToFile True {SaveMessage %message $CurrentMailbox