Re: [SAde] LANG de

"Ernesto Baschny" <[email protected]> Sun, 19 Oct 2003 20:28:12 +0200
Newsgroups gmane.mail.spam.spamassassin.devel.de
Message-ID <3F92F3DC.15007.1447D754@localhost>
On 19 Oct 2003 at 18:12, Wolfram Schroeder wrote:

> SA könnte aber durchaus noch einiges an Internationalisierung vertragen. 
> Die Idee, die LC_-Systemeinstellung zu verwenden, ist wg. der von Dir 
> genannten Probleme in der Tat nicht sonderlich gut ausgedacht, also 
> schlag's Devel mal vor. Letztlich ist das ja auch nicht viel mehr, als 
> language_ok jetzt schon tut.

Hab das hier gestern den Devels vorgeschlagen:

- - - - - - - - - - - - - - - - - - - - - - - - 
Hi!

I would like to make a suggestion that could be considered for a future
release (3.0?) of SpamAssassin.

We now have a lot of rules, and various persons are developing even more
custom rules. For example our new brazilian group will have a huge list
of brazilian rules. I hope we will be able to develop such a good ruleset
that it might be included in the SA-distribution.

Ok. But then I have a problem when you probably will want the rules to be
prefixed with a "lang pt_BR" or something, so they only apply to those
who have this locale set. But I receive english, german and portuguese
spam, so there is no single locale which I can set.

My suggestion to be able to handle this huge amount of rules is to 
create "rule-sets" where one can combine several rules in a group, and
have all rules from a group enabled and disabled at once. In the config
one could tell:

 use_rulesets ALL

or 

 use_rulesets OTHER lang_BR lang_DE custom_EB

'ALL' would mean all rules, 'OTHER' all rules that are not assigned to 
any ruleset (those would be all the current default rules from the
SA distribution). This way the rule developers can add the following
statement to each rule they develop:

 add_to_ruleset lang_BR BR_RENDA_EXTRA_BODY

or even more fancy:

 add_to_ruleset lang_BR BR_*

This idea would make it possible to distribute country-specific rules
in /usr/share/spamassassin/ without much trouble.

What do you think about it?

- - - - - - - - - - - - - - - - - - - - - - - - 

Ein Kommentar dazu kam schon, und zwar, dass das eventuell Probleme mit
der automatischen (genetischen) score-Generierung mit sich bringen
würden. Dort muss man dann alle möglichen Kombinationen an Regeln 
den GA-algorythmus geben, und dann noch ein guten Auszug an Spam für die
jeweilige Kombination finden, weil die Scores ja nur durch Kombination
aller Regeln erstellt werden. Momentan werden die Scores ja schon 
getrennt mit/ohne "network rules" und mit/ohne bayes.

Aber im Allgemeinen war die Idee schon mal besser als das, was momentan
da ist (das mit lang), damit man wenigstens die Regeln mal in die Distri
reinbekommt, auch wenn es zunächst mal mit "works-for-me" Scores
passiert. Da müsste man sich dann mal überlegen, wie man diese Scores 
besser aus der gesamten German-Community bekommen kann.


Greets,
Ernesto


-- 
Ernesto Baschny <[email protected]>
 http://www.baschny.de - PGP: http://www.baschny.de/pgp.txt
 Sao Paulo/Brasil - Stuttgart/Germany
 Ernst@IRCnet - ICQ# 2955403



-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office; & in the Server Room 
http://www.enterpriselinuxforum.com