You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by Apache Wiki <wi...@apache.org> on 2005/08/24 04:40:55 UTC

[Spamassassin Wiki] Update of "RulesProjPromotion" by DanielQuinlan

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Spamassassin Wiki" for change notification.

The following page has been changed by DanielQuinlan:
http://wiki.apache.org/spamassassin/RulesProjPromotion

The comment on the change is:
update proposal some

------------------------------------------------------------------------------
  Files that DO get moved:
  
  {{{
-    25_body_tests_es.cf -> ROOT/rules/trunk/lang/es/
+    25_body_tests_es.cf -> ROOT/rules/trunk/core/es/
-    25_body_tests_pl.cf -> ROOT/rules/trunk/lang/pl/
+    25_body_tests_pl.cf -> ROOT/rules/trunk/core/pl/
-    30_text_de.cf       -> ROOT/rules/trunk/lang/de/
+    30_text_de.cf       -> ROOT/rules/trunk/core/de/
-    30_text_fr.cf       -> ROOT/rules/trunk/lang/fr/
+    30_text_fr.cf       -> ROOT/rules/trunk/core/fr/
-    30_text_it.cf       -> ROOT/rules/trunk/lang/it/
+    30_text_it.cf       -> ROOT/rules/trunk/core/it/
-    30_text_nl.cf       -> ROOT/rules/trunk/lang/nl/
+    30_text_nl.cf       -> ROOT/rules/trunk/core/nl/
-    30_text_pl.cf       -> ROOT/rules/trunk/lang/pl/
+    30_text_pl.cf       -> ROOT/rules/trunk/core/pl/
-    30_text_pt_br.cf    -> ROOT/rules/trunk/lang/pt_br/
+    30_text_pt_br.cf    -> ROOT/rules/trunk/core/pt_br/
  
     20_advance_fee.cf   -> ROOT/rules/trunk/core/
     20_drugs.cf         -> ROOT/rules/trunk/core/
@@ -102, +102 @@

     20_phrases.cf        -> ROOT/rules/trunk/core/
     20_ratware.cf        -> ROOT/rules/trunk/core/
     20_uri_tests.cf      -> ROOT/rules/trunk/core/
-    25_replace.cf (odd case, but will change a lot) -> ROOT/rules/trunk/core/
+    25_replace.cf        -> ROOT/rules/trunk/core/ [code dependent, but these will change a lot]
     50_scores.cf         -> ROOT/rules/trunk/core/
     60_whitelist_spf.cf  -> ROOT/rules/trunk/core/
  }}}
@@ -110, +110 @@

  Files that get deleted: 20_anti_ratware.cf: it's empty.
  
  JustinMason: ok, that looks good -- except for one thing.  We still have the problem that ROOT/rules/trunk/core/ is going to be a mix of legacy files and auto-promoted rules.  What do we do about that problem?
+ 
+ DanielQuinlan: the auto-promoted .cf file should be 100% machine generated and overwritten each night (or whatever the period is).   Once a rule is promoted into core, it'll disappear from the auto-promoted file because (a) overlap test dictates so or (b) the non-core file that contained the file will no longer contain it (or we could use a comment, rename the rule, etc. to indicate that it is no longer a candidate for auto-promotion if the author wants to keep it around).
  
  == Algorithm for auto-promotion ==
  
@@ -125, +127 @@

   * if the config line doesn't refer to a rule name, output the line.
   * send that output to a file in ROOT/rules/trunk/core/ , named according to the sandbox directory's name.  e.g. lines from all files matching ROOT/rules/trunk/sandbox/jmason/*.cf would be output to ROOT/rules/trunk/core/25_jmason.cf
  
+ DanielQuinlan: we'll need to work on the naming
+