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

Annotation of /rpms/qpsmtpd/sme10/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 21:59:36 2016 UTC (8 years, 5 months ago) by vip-ire
Branch: MAIN
CVS Tags: qpsmtpd-0_96-21_el7_sme, qpsmtpd-0_96-19_el7_sme, qpsmtpd-0_96-23_el7_sme, qpsmtpd-0_96-20_el7_sme, qpsmtpd-0_96-12_el7_sme, qpsmtpd-0_96-22_el7_sme, qpsmtpd-0_96-14_el7_sme, qpsmtpd-0_96-11_el7_sme, qpsmtpd-0_96-16_el7_sme, qpsmtpd-0_96-13_el7_sme, qpsmtpd-0_96-15_el7_sme, qpsmtpd-0_96-17_el7_sme, qpsmtpd-0_96-18_el7_sme, HEAD
* Mon May 9 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-11.sme
- Fix karma logic by checking negative strikes [SME: 9462]

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