> Am 10.12.2014 um 09:26 schrieb Marc Stürmer <[email protected]>: > > Am 09.12.2014 um 17:27 schrieb Christian Rößner: > >> 13864 if ($score && $score >= 0.5) { >> 13865 $msginfo->ip_repu_score($score); >> 13866 my $spam_test = sprintf('AM.IP_BAD_%s=%.1f', $worst_ip, >> $score); >> 13867 for my $r (@{$msginfo->per_recip_data}) { >> 13868 $r->spam_level( ($r->spam_level || 0) + $score); >> 13869 $r->spam_tests([]) if !$r->spam_tests; >> 13870 unshift(@{$r->spam_tests}, \$spam_test); >> 13871 } >> 13872 } >> >> I am not a Perl developer, so I have a little bit problems to understand >> things. What I would love to reach is that the $score can never be more than >> a fixed value. Let’s say 3.5. So one wishlist feature is to have a parameter >> that specifies a max_bad_ip_score, but in the meantime, I would like to >> hard-code this to get things back to work. > > I am by no means a perl devloper either, but the simplest way to do that way > of hard coding so far seems to me to add a new line after 13871, that goes > like this: > > if ($score >= 3.5) > $score = 3.5; > > You get the idea.
Yes, I know my question sounds silly :-) I put similar lines after 13864. I was unsure, if this a) would store this value on redis and b) has a direct effect for the total scoring Kind regards Christian -- Bachelor of Science Informatik Erlenwiese 14, 36304 Alsfeld T: +49 6631 78823400, F: +49 6631 78823409, M: +49 171 9905345 USt-IdNr.: DE225643613, http://www.roessner-network-solutions.com
signature.asc
Description: Message signed with OpenPGP using GPGMail
