/[smecontribs]/rpms/smeserver-learn/contribs9/smeserver-learn-1.0-SME6862.patch
ViewVC logotype

Contents of /rpms/smeserver-learn/contribs9/smeserver-learn-1.0-SME6862.patch

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


Revision 1.1 - (show annotations) (download)
Tue Mar 29 08:04:39 2016 UTC (8 years, 7 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-learn-1_0-11_el6_sme, smeserver-learn-1_0-12_el6_sme, smeserver-learn-1_0-13_el6_sme, HEAD
Error occurred while calculating annotation data.
Initial import

1 --- smeserver-learn-1.0/root/usr/bin/Learn.pl.beef 2016-03-09 06:41:21.200000000 -0500
2 +++ smeserver-learn-1.0/root/usr/bin/Learn.pl 2016-03-09 06:42:33.887000000 -0500
3 @@ -138,7 +138,7 @@ foreach my $user (@users) {
4 my $SpamDir = ($sadb->get_prop($mode, "LearnNew") eq "enabled")? $MailDir . "/" . $logdir : $MailDir . "/" . $logdir . "/cur/" ;
5 #taking action according to actual mode
6 my $counter = 0;
7 - find( { wanted => sub { -f && $counter++;}, no_chdir => 1, follow_fast => 1 }, $SpamDir );
8 + find( { wanted => sub { -f && $_ =~ m/($logdir\/cur|$logdir\/new|$logdir\/tmp)/ && $counter++;}, no_chdir => 1, follow_fast => 1 }, $SpamDir );
9 if ($mode eq "LearnAsSpam" and $counter>0) {
10 my $result = `/usr/bin/sa-learn --spam $SpamDir`;
11 chomp($result); printf("+Learning Spam from %s: %s\n",$logdir,$result);

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