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

Contents of /rpms/smeserver-learn/contribs8/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)
Wed Mar 9 11:44:45 2016 UTC (8 years, 2 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-learn-1_0-9_el5_sme, smeserver-learn-1_0-12_el5_sme, smeserver-learn-1_0-11_el5_sme, smeserver-learn-1_0-7_el5_sme, smeserver-learn-1_0-8_el5_sme, smeserver-learn-1_0-10_el5_sme, HEAD
* Wed Mar 09 2016 JP Pialasse <tests@pialasse.com> 1.0-7.sme
- fix find not restrictive enough when learning also new [SME: 6862]

* Tue Mar 08 2016 JP Pialasse <tests@pialasse.com> 1.0-6.sme
- new version SME8 and SME9
- fix wrong default db key DeleteAfterLearn [SME: 7083]
- added inspection of temp and new subdir [SME: 6862]
- moved default db keys as file outside of spec
- new db properties: (LearnAsHam,LearnInWL)RemoveSPAMTag, (*)LeanNew,(*)Uniq,(LearnAsSpam)SpamLinks
- new account db property for user: SpamLinks
- import to buildsys [SME: 4423]
- use sa-learn per dir and not per message [SME: 1701]
- merge enhancements [SME: 4423] [SME: 1701]
- NFR: create links
- NFR: filter out SPAM tag from HAM and InWL mails
- NFR: added auto create folders if multiple folder disabled
- NFR: create db key for multiple folder to inspect
- enhanced move to junkmail or inbox
- moving job from crontab to /etc/cron.d/Learn
- fixed typo in event email-update (r3)
- fixed wrong file permission on /etc/cron.d/Lean [SME: 9283] (r4)
- fixed messy output [SME: 9284] (r5)
- fixed replaced cron file on update [SME: 9286](r6)

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