/[smeserver]/rpms/qpsmtpd/sme9/qpsmtpd-0.96-check_negative_karma_strikes.patch
ViewVC logotype

Annotation of /rpms/qpsmtpd/sme9/qpsmtpd-0.96-check_negative_karma_strikes.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Mon May 9 22:03:41 2016 UTC (8 years, 6 months ago) by vip-ire
Branch: MAIN
CVS Tags: qpsmtpd-0_96-5_el6_sme, qpsmtpd-0_96-6_el6_sme, qpsmtpd-0_96-8_el6_sme, qpsmtpd-0_96-7_el6_sme, qpsmtpd-0_96-4_el6_sme, qpsmtpd-0_96-3_el6_sme, qpsmtpd-0_96-10_el6_sme, qpsmtpd-0_96-11_el6_sme, qpsmtpd-0_96-9_el6_sme, HEAD
* Mon May 9 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-3.sme
- Fix karma logic by checking negative strikes [SME: 9502]

1 vip-ire 1.1 diff -Nur qpsmtpd-0.96/plugins/karma qpsmtpd-0.96_bz9462/plugins/karma
2     --- qpsmtpd-0.96/plugins/karma 2016-05-09 23:56:51.145450697 +0200
3     +++ qpsmtpd-0.96_bz9462/plugins/karma 2016-05-09 23:57:34.484446254 +0200
4     @@ -449,7 +449,7 @@
5     my $history = ($nice || 0) - $naughty;
6     my $log_mess = '';
7    
8     - if ($karma <= $self->{_args}{strikes}) { # Enough negative strikes ?
9     + if ($karma <= -$self->{_args}{strikes}) { # Enough negative strikes ?
10     $history--;
11     my $negative_limit = 0 - $self->{_args}{negative};
12     if ($history <= $negative_limit) {

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed