1 |
# $Id: smeserver-learn.spec,v 1.2 2020/12/20 11:58:48 brianr Exp $ |
2 |
# Authority: unnilennium |
3 |
# Name: Jean-Philippe Pialasse. |
4 |
%define name smeserver-learn |
5 |
%define version 1.0 |
6 |
%define release 15 |
7 |
|
8 |
Summary: SME Server Mails Learning script |
9 |
Name: %{name} |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GPL |
13 |
Group: Networking/Daemons |
14 |
Source: %{name}-%{version}.tar.gz |
15 |
Patch0: smeserver-learn-1.0-event.patch |
16 |
Patch1: smeserver-learn-1.0-SME9283.patch |
17 |
Patch2: smeserver-learn-1.0-SME9284.patch |
18 |
Patch3: smeserver-learn-1.0-SME6862.patch |
19 |
Patch4: smeserver-learn-1.0-admin.patch |
20 |
Patch5: smeserver-learn-1.0-SME9282.patch |
21 |
Patch6: smeserver-learn-1.0-MOVE.patch |
22 |
Patch7: smeserver-learn-1.0-VERBOSE.patch |
23 |
Patch8: smeserver-learn-1.0-devnull.patch |
24 |
Patch9: smeserver-learn-1.0.bz9446.chown-bayes_tok.patch |
25 |
Patch10: smeserver-learn-1.0-Remove-deprecated-defined.patch |
26 |
|
27 |
Packager: JP Pialasse <tests@pialasse.com> |
28 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
29 |
BuildArchitectures: noarch |
30 |
Requires: perl-Email-Simple |
31 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
32 |
|
33 |
%description |
34 |
Scripts which allows users to interact with spamassassin rules simply |
35 |
by droping mail in special folders of their mailbox (working only with imap) |
36 |
- Learn mail as spam |
37 |
- Learn mail as ham |
38 |
- Whitelist the sender so his mails won't be taged as spam again |
39 |
|
40 |
%changelog |
41 |
* Thu Dec 31 2020 Brian Read <brianr@bjsystems.co.uk> 1.0-15.sme |
42 |
- Remove-deprecated-defined [SME: 11281] |
43 |
|
44 |
* Sun Dec 20 2020 Brian Read <brianr@bjsystems.co.uk> 1.0-14.sme |
45 |
- Initial Import in SME 10 [SME: 11281] |
46 |
|
47 |
* Fri Jul 29 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-13.sme |
48 |
- fix permission problem on bayes_tok [SME: 9446] |
49 |
|
50 |
* Sat May 14 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-12.sme |
51 |
- fix verbose disabled unlink /dev/null [SME: 9512] |
52 |
|
53 |
* Tue Mar 29 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-11.sme |
54 |
- first import in SME9 [SME: 9414] |
55 |
|
56 |
* Wed Mar 16 2016 JP Pialasse <tests@pialasse.com> 1.0-10.sme |
57 |
- fix encoding problem when removing or adding tags [SME: 9282] |
58 |
- fix moving file not working MOVE patch [SME: 9314] |
59 |
- NFR: setting for verbose (enabled,disabled, active) VERBOSE patch [SME: 9313] |
60 |
|
61 |
* Tue Mar 15 2016 JP Pialasse <tests@pialasse.com> 1.0-8.sme |
62 |
- NFR: check admin Maildir [SME: 9279] |
63 |
- NFR: restrict utilization to some users [SME: 9280] |
64 |
|
65 |
* Wed Mar 09 2016 JP Pialasse <tests@pialasse.com> 1.0-7.sme |
66 |
- fix find not restrictive enough when learning also new [SME: 6862] |
67 |
|
68 |
* Tue Mar 08 2016 JP Pialasse <tests@pialasse.com> 1.0-6.sme |
69 |
- new version SME8 and SME9 |
70 |
- fix wrong default db key DeleteAfterLearn [SME: 7083] |
71 |
- added inspection of temp and new subdir [SME: 6862] |
72 |
- moved default db keys as file outside of spec |
73 |
- new db properties: (LearnAsHam,LearnInWL)RemoveSPAMTag, (*)LeanNew,(*)Uniq,(LearnAsSpam)SpamLinks |
74 |
- new account db property for user: SpamLinks |
75 |
- import to buildsys [SME: 4423] |
76 |
- use sa-learn per dir and not per message [SME: 1701] |
77 |
- merge enhancements [SME: 4423] [SME: 1701] |
78 |
- NFR: create links |
79 |
- NFR: filter out SPAM tag from HAM and InWL mails |
80 |
- NFR: added auto create folders if multiple folder disabled |
81 |
- NFR: create db key for multiple folder to inspect |
82 |
- enhanced move to junkmail or inbox |
83 |
- moving job from crontab to /etc/cron.d/Learn |
84 |
- fixed typo in event email-update (r3) |
85 |
- fixed wrong file permission on /etc/cron.d/Lean [SME: 9283] (r4) |
86 |
- fixed messy output [SME: 9284] (r5) |
87 |
- fixed replaced cron file on update [SME: 9286](r6) |
88 |
|
89 |
* Wed Jun 25 2008 Emmmanuel JOORIS <joorise@dot-world.net> 0.0.1-3 |
90 |
- add dependencies to spec file |
91 |
|
92 |
* Mon Jun 23 2008 Daniel B. <daniel@firewall-services.com> 0.0.1-2 |
93 |
- add spaces after the tags |
94 |
|
95 |
* Wed Jun 18 2008 Daniel B. <daniel@firewall-services.com> 0.0.1-1 |
96 |
- full path for Learn script in crontab templates |
97 |
- rename to smeserver-learn |
98 |
- Fix default tag for Ham mail to [HAM] |
99 |
- Lean.pl will be executed daily by default |
100 |
|
101 |
* Wed Jun 11 2008 Emmanuel JOORIS <joorise@dot-world.net> |
102 |
- 0.0.1-0 |
103 |
- Original version |
104 |
|
105 |
%prep |
106 |
%setup |
107 |
%patch0 -p1 |
108 |
%patch1 -p1 |
109 |
%patch2 -p1 |
110 |
%patch3 -p1 |
111 |
%patch4 -p1 |
112 |
%patch5 -p1 |
113 |
%patch6 -p1 |
114 |
%patch7 -p1 |
115 |
%patch8 -p1 |
116 |
%patch9 -p1 |
117 |
%patch10 -p1 |
118 |
|
119 |
%build |
120 |
perl createlinks |
121 |
|
122 |
%install |
123 |
rm -rf $RPM_BUILD_ROOT |
124 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
125 |
rm -f %{name}-%{version}-filelist |
126 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT |\ |
127 |
sed -e "s@^$RPM_BUILD_ROOT@@g" \ |
128 |
-e "s@^%attr(0644,root,root) /etc/cron.d/Learn@%attr(0644,root,root)%config(noreplace) /etc/cron.d/Learn@"\ |
129 |
> %{name}-%{version}-filelist |
130 |
|
131 |
%clean |
132 |
#rm -rf $RPM_BUILD_ROOT |
133 |
|
134 |
%post |
135 |
|
136 |
%postun |
137 |
|
138 |
%files -f %{name}-%{version}-filelist |
139 |
%defattr(-,root,root) |
140 |
|