On Tue, Jan 27, 2004 at 11:56:45AM -0800, Gary Funck wrote: > > Attached is a perl script, expand_regex.pl, which will accept > an SA rules file on standard input and will by default output > the expansions of those rules, taking into account regex > factoring due to parentheses. When invoked with the -verbose > option, the program will preface the expansion by the rule. It > has several options which will cause it to expand various > commonly used idioms inside regex patterns such as \d, [set of > chars], {repetition count}, and ?. Note that these expansion > options are off by default, and when enabled can create some > very large expansion sequences.
Just what I was thinking of to write, because seemingly one of my rules BLOATS spamd's memory up to hundreds of megabytes if searching a large mail (5M). So this comes exactly whenn needed! Only it snags on a very special rule! I preceeded a very convolutet set of p*rn-spammer-domain-names with a 'negative lookahead assertion': '(?!www\.panicboys\.net)' to NOT hit the one special combination, which is a japanese soccer(or football?) club and NOT a p*rn host. Now your expansion-script, seemingly not knowing '(?!...)' preceeds every expansion with the panicboys part :-) Thanks anyway, it is a very good start and possibly just now will save me a lot of trouble. THANKS, Stucki ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk