/[smecontribs]/rpms/smeserver-mailstats/contribs7/smeserver-mailstats-0.0.3-fix-tls-stats.patch
ViewVC logotype

Annotation of /rpms/smeserver-mailstats/contribs7/smeserver-mailstats-0.0.3-fix-tls-stats.patch

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


Revision 1.1 - (hide annotations) (download)
Mon Jan 11 18:20:48 2010 UTC (14 years, 9 months ago) by snetram
Branch: MAIN
CVS Tags: smeserver-mailstats-0_0_3-15_el4_sme, smeserver-mailstats-0_0_3-13_el4_sme, smeserver-mailstats-0_0_3-14_el4_sme, HEAD
* Mon Jan 11 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 0.0.3-14
- Fix stats when mails are received using TLS in reporting timeframe [SME: 5585]

1 snetram 1.1 diff -up smeserver-mailstats-0.0.3/root/usr/bin/spamfilter-stats-7.pl.update-stats-0_6_23 smeserver-mailstats-0.0.3/root/usr/bin/spamfilter-stats-7.pl
2     --- smeserver-mailstats-0.0.3/root/usr/bin/spamfilter-stats-7.pl.update-stats-0_6_23 2010-01-11 19:04:56.000000000 +0100
3     +++ smeserver-mailstats-0.0.3/root/usr/bin/spamfilter-stats-7.pl 2010-01-11 19:08:51.000000000 +0100
4     @@ -2,12 +2,11 @@
5    
6     #############################################################################
7     #
8     -# This script provides daily SpamFilter statistics and deletes all users
9     -# junkmails. Configuration of the script is done by the Spam Filter
10     -# Server-Manager module
11     +# This script provides daily SpamFilter statistics.
12     #
13     -# This script has originally been developed
14     -# by Jesper Knudsen at http://sme.swerts-knudsen.dk
15     +# This script was originally developed
16     +# by Jesper Knudsen at http://sme.swerts-knudsen.dk
17     +# and re-written by brian read at bjsystems.co.uk (with some help from the community - thanks guys)
18     #
19     #############################################################################
20     #
21     @@ -60,7 +59,7 @@ if ($cdb->get('mailstats')){
22    
23     #Configuration section
24     my %opt = (
25     - version => '0.6.22', # please update at each change.
26     + version => '0.6.23', # please update at each change.
27     debug => 0, # guess what ?
28     sendmail => '/usr/sbin/sendmail', # Path to sendmail stub
29     from => 'spamfilter-stats', # Who is the mail from
30     @@ -477,8 +476,13 @@ LINE: while (<>) {
31     }
32     next LINE
33     }
34     +
35    
36     - print $log_items[5]."\n"; #Not detected
37     + if ($log_items[5] eq 'tls') {$MiscDenyCount++;$counts{$abshour}{$CATNONCONF}++;mark_domain_rejected($proc);next LINE}
38     +
39     +
40     + print "Unexpected failure string in log file: ".$log_items[5]."\n"; #Not detected
41     + next LINE
42    
43     }
44    

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