procmail
[Top] [All Lists]

RE: Limiting extent

2002-10-20 08:47:45
Dman, I'll definitely switch (already have) to the "space-based" recipe.
Thanks a million.  (And David/Sean thanks for your comments also!)

I suppose the entire URL could be encoded this way -which would defeat
this recipe. I assume this situation is the basis of Sean's comment about
preprocessing the message with sed.  I'm not sure I understand how to go
about that.

In my recently purchased "sed & awk" book, I see the [:xdigit:] class.  Am
I going in the right direction?

                                - fleet -

On Sun, 20 Oct 2002, Dallman Ross wrote:

I don't see a need for the trailing /, but if you insist:

  //[^    /]*%[^  ]*/

Because this (in the message body) is perfectly acceptable:

http://www.asu.edu/educ/epsl/CERU/Annual%20reports/EPSL-0209-103-CERU.pd

while this:

http%3A%2F%2Fwww%2Ecoolandquiet%2Ecom%2F

appears to be a spammer trying to hide his/her URL.  (And I need to drop
the :// from my recipe apparently.)

Okay, we can adjust that, but as I said and Paul seconded, you do
not want `.*' in this recipe.

      ()\<http[^      /]*%

should get you there.  Try it.  That's a caret, space, tab, and
slash in the brackets.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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