procmail
[Top] [All Lists]

RE: Limiting extent

2002-10-20 04:58:24
close; but I'm obviously missing something.

Yes.  Well, since `.*' means essentially anything at all, 
then it stands to reason that `//.*something' need not be one
phrasal 
"word."  That is,

    //someurl.htm and so on and so forth something

will match on "//.*something".  You need to rule out whitespace.


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.

-- 
Dallman Ross

"If you find a path with no obstacles, it probably does not lead to
anywhere."
        Thoughts of Rev. Sunnan Kubose, from _Zen in the Markets_ 

_______________________________________________
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>