Skip wrote:

uri  URI_EXE  /\.(?:exe|scr|dll|pif|vbs|wsh|cmd|bat)(?:\W{0,20}$|\?)/i

WARNING: quickly tested (and only with tunderbird).

This will also catch things like "foo.exe- blah blah" and "foo.exe!!! blah blah". Testing with TB shows that it ignores "trailing punctutation".

Wouldn't it be better if
- the uri parser removes such trailing "punctuation"?
- the uri parser checks two variants: "full" uri and the uri without the query string?

Looks promising. Quick question: How do you test regular expressions with thunderbird? I've been using TB since the early 1930's and don't remember seeing any regular expression type search options.

I don't test REs in TB. I test how it renders URLs by sending myself mail and seeing what URL it detects.


Well, maybe not the 30's but I've been using it a long time.

Skip


Reply via email to