On 2000-10-02, 20:01:35 (-0500), mark david mcCreary wrote:
> # Configuration File #1 - Sanitize
> file_list_3 = (?i)\.([a-z][a-z][a-z0-9].[a-z0-9][a-z0-9][a-z0-9])
> file_list_4 = (?i)\.([a-z][a-z][a-z0-9].[a-z0-9][a-z0-9])
> file_list_5 = (?i)\.([a-z][a-z].[a-z0-9][a-z0-9][a-z0-9])
> file_list_6 = (?i)\.([a-z][a-z].[a-z0-9][a-z0-9])
I'm getting the distinct impression that these are somewhat redundant -
since you never bind to the end of the string using a trailing $, then
policies 3, 4 and 5, 6 respectively match the same things, and these rules
will match files with names like:
Just thought I'd mention it. :) I'm commenting from memory though, so I may
have gotten it wrong. I'd recommend testing it.
Also, it'd be easy enough to add all these possibilities to ruleset 2, since
the default action is the same. The fewer rulesets there are, the faster
the sanitizer will run (although the difference is probably negligable).
Also, these could probably be merged with ruleset 1 as well, for the same
reasons. For legibility you would simply split the one-big-regexp between
lines like I did in the sample I posted to the list just now.
It would be interesting to see the procmail rules you use to invoke and
process the results from the sanitizer. Also - for your users' sakes, you
might want to add some common known-to-be-harmless extensions to a
-- Bjarni R. Einarsson PGP: 02764305, B7A3AB89 email@example.com -><- http://bre.klaki.net/
Netverjar gegn ruslpósti: http://www.netverjar.is/baratta/ruslpostur/
-- This mailing list's home page is: http://mailtools.anomy.net/archives/anomy-list/ There you can find subscription instructions and possibly an archive. Molar.is is a free Icelandic mailing list service.