procmail
[Top] [All Lists]

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

1998-03-07 21:36:56

I only barely understand this, so of course I went right off changing
things. 8) Just a couple jogs:

:0
* ^From:.*@([^ ]\.)*\/(yahoo|(hot|rocket)mail|etc|juno)\.com\>
{
 :0
 * MATCH ?? ^^(yahoo|rocketmail)

   * MATCH ?? ^^yahoo

Because rocketmail doesn't use the same string.

 { STRING=" *DO YOU YAHOO\?" # do not include opening left anchor

Just " *DO YOU YAHOO" is fine, there's an ! before the ? in the actual
text. That works great. Now--

Can we anchor the string at the beginning of the line? Is it already
anchored in some way I don't understand? I ask because I can imagine
somebody forwarding a message from somebody(_at_)juno(_dot_)com and then adding
trailing text. In a case like that this script would cut lots of legitimate
text, if the string wasn't anchored, because all the trailing text would be
evaluated as part of the footer.

Thanks for your help.

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