<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 2010-05-12 02:38, Gunnar Wrobel wrote:
<blockquote cite="mid:20100512083820.1933585xtkxnnjgo@webmail.pardus.de"
type="cite"><br>
Quoting Christian Tardif <a class="moz-txt-link-rfc2396E" href="mailto:christian.tardif@servinfo.ca"><christian.tardif@servinfo.ca></a>:
<br>
<br>
<blockquote type="cite">Hi,
<br>
Can the default horde spam filter be modified in any way? I mean,
<br>
filtering by Spam Level is not precise enough for most
<br>
installations. Because there could be a great difference between
<br>
Level 4 and Level 5. What I would prefer is filtering based on
<br>
X-Spam-Flag. On the SpamAssassin, you get a great level of control
<br>
(you're not choosing between 4 and 5... you could have 4.3) and
<br>
then set the X-Spam-Flag according to the target set in
<br>
</blockquote>
amavisd.conf
<br>
<blockquote type="cite">($sa_tag2_level_deflt). Everyone already
knows that. So, on the
<br>
</blockquote>
user
<br>
<blockquote type="cite">side, he choose to activate spam filtering or
not. If more fine
<br>
control is absolutely necessary, why not set the default spam
<br>
</blockquote>
filter
<br>
<blockquote type="cite">to check against the X-Spam-Score instead of
the X-Spam-Level?
<br>
I know I can set all this with a custom rule... but that would be
<br>
really cool if the default Spam rule in the web interface would be
<br>
really useable...
<br>
</blockquote>
<br>
I think so far this just has not been discussed since nobody complained
before :)
<br>
<br>
Of course you can set the default level to the same level set for
amavis in the prefs within
<br>
<br>
/kolab/var/kolab/www/client/ingo/config/prefs.php
<br>
<br>
(section $_prefs['spam']).
<br>
<br>
But if I understand you correctly than your are rather aiming at
<br>
<br>
$conf['spam']['header'] = 'X-SpamLevel';
<br>
$conf['spam']['char'] = '*';
<br>
$conf['spam']['compare'] = 'string';
<br>
<br>
within /kolab/var/kolab/www/client/ingo/config/conf.php
<br>
<br>
Can you determine a setting that works with the spam flag on the Kolab
server and add this to an issue in our tracker? I would change the
default setting then and you would get it shipped with Kolab Server 2.3
:)<br>
</blockquote>
<br>
It only takes one to complain to open a discussion :-)<br>
<br>
I just found something while looking at the ingo code. One little thing
that will suffice for me.<br>
<br>
In /kolab/etc/kolab/templates/webclient-ingo_conf.php.template:<br>
<br>
$conf['spam']['header'] = 'X-Spam-Score';<br>
$conf['spam']['compare'] = 'numeric';<br>
<br>
In /kolab/var/kolab/www/client/ingo/spam.php:<br>
<br>
Change near line number 71:<br>
<br>
from: $v = &$form->addVariable(_("Spam Level:"), 'level', 'int',
false, false, _("Messages with a likely spam score....<br>
to: $v = &$form->addVariable(_("Spam Score:"), 'level',
'number', false, false, _("Messages with a likely spam score....<br>
<br>
So that you make sure the entered value is numeric, and the field name
in the web client is set to Spam Score instead of Spam Level<br>
<br>
The result of all this:<br>
<br>
The sieve filter is then set to:<br>
<br>
if header :value "ge" :comparator "i;ascii-numeric" "X-Spam-Score"
["9.2"] {<br>
fileinfo "INBOX/Spam";<br>
stop;<br>
}<br>
<br>
Isn't that nice? Job done. The only thing that could be interesting
is th get the initial default value for filtering (the 9.2 in my
example) from the $sa_tag2_level_deflt value in
/kolab/etc/amavisd/amavisd.conf. That would make sense, and would at
the same time be a good default for most users. This seems to me to be
a much more valuable Spam filtering solution than what's actually in
place.<br>
<br>
Now, how can this be proposed as default for the next release? <br>
<br>
<div class="moz-signature">-- <br>
<style type="text/css" media="screen">
#container {
position: relative;
}
#top {
position: relative;
}
#logo {
position: relative;
float: left;
}
#infos {
position: relative;
float: left;
}
#bottom {
position: relative;
width: 100%;
clear: both;
}</style><br>
Christian Tardif</div>
</body>
</html>