http://bugzilla.spamassassin.org/show_bug.cgi?id=3065





------- Additional Comments From [EMAIL PROTECTED]  2004-02-18 21:51 -------
Sorry, this should have been in the initial description...  (RETURN at the  
wrong time...)  
  
There are some kinds of rules where counting the number of matches is  
important.   For example, I would like to write a rule that counts the number  
of invalid html tags.  
  
full    __INVALID_HTML_TAGS    count:m/<(?!a|img|h\d|font|etc...)\w+[^>]*>/g 
full    __VALID_HTML_TAGS       count:m/<(?:a|img|h\d|font|etc...)[^>]*>/g 
meta    MADE_UP_HTML    ( __VALID_HTML_TAGS > 15 && __INVALID_HTML_TAGS > 
__VALID_HTML_TAGS * 0.5 ) 
 
Similarly, I would like to count the number of mid-word html tags vs regular 
html tags: 
 
full    __IN_WORD_TAGS  count:m/\w<[^>]+>\w/g 
full    __TOTAL_TAGS    count:m/<[^>]+>/g 
meta    HTML_BREAKING_WORDS        ( __TOTAL_TAGS > 50 && __IN_WORD_TAGS > 
__TOTAL_TAGS * 0.3 ) 
 
 



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to