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