1 |
unnilennium |
1.1 |
# $Id: smeserver-learn.spec,v 1.0 2016/03/07 13:40:22 unnilennium Exp $ |
2 |
|
|
# Authority: unnilennium |
3 |
|
|
# Name: Jean-Philippe Pialasse. |
4 |
|
|
%define name smeserver-learn |
5 |
|
|
%define version 1.0 |
6 |
unnilennium |
1.3 |
%define release 3 |
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 |
unnilennium |
1.3 |
Patch0: smeserver-learn-1.0-event.patch |
16 |
unnilennium |
1.1 |
Packager: JP Pialasse <tests@pialasse.com> |
17 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
18 |
|
|
BuildArchitectures: noarch |
19 |
|
|
Requires: perl-Email-Simple |
20 |
unnilennium |
1.2 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
21 |
unnilennium |
1.1 |
|
22 |
|
|
%description |
23 |
|
|
Scripts which allows users to interact with spamassassin rules simply |
24 |
|
|
by droping mail in special folders of their mailbox (working only with imap) |
25 |
|
|
- Learn mail as spam |
26 |
|
|
- Learn mail as ham |
27 |
|
|
- Whitelist the sender so his mails won't be taged as spam again |
28 |
|
|
|
29 |
|
|
%changelog |
30 |
unnilennium |
1.3 |
* Tue Mar 08 2016 JP Pialasse <tests@pialasse.com> 1.0-3.sme |
31 |
unnilennium |
1.1 |
- new version SME8 and SME9 |
32 |
|
|
- fix wrong default db key DeleteAfterLearn [SME: 7083] |
33 |
|
|
- added inspection of temp and new subdir [SME: 6862] |
34 |
|
|
- moved default db keys as file outside of spec |
35 |
|
|
- new db properties: (LearnAsHam,LearnInWL)RemoveSPAMTag, (*)LeanNew,(*)Uniq,(LearnAsSpam)SpamLinks |
36 |
|
|
- new account db property for user: SpamLinks |
37 |
|
|
- import to buildsys [SME: 4423] |
38 |
|
|
- use sa-learn per dir and not per message [SME: 1701] |
39 |
|
|
- merge enhancements [SME: 4423] [SME: 1701] |
40 |
|
|
- NFR: create links |
41 |
|
|
- NFR: filter out SPAM tag from HAM and InWL mails |
42 |
|
|
- NFR: added auto create folders if multiple folder disabled |
43 |
|
|
- NFR: create db key for multiple folder to inspect |
44 |
|
|
- enhanced move to junkmail or inbox |
45 |
|
|
- moving job from crontab to /etc/cron.d/Learn |
46 |
unnilennium |
1.3 |
- fixed typo in event email-update |
47 |
unnilennium |
1.1 |
|
48 |
|
|
* Wed Jun 25 2008 Emmmanuel JOORIS <joorise@dot-world.net> 0.0.1-3 |
49 |
|
|
- add dependencies to spec file |
50 |
|
|
|
51 |
|
|
* Mon Jun 23 2008 Daniel B. <daniel@firewall-services.com> 0.0.1-2 |
52 |
|
|
- add spaces after the tags |
53 |
|
|
|
54 |
|
|
* Wed Jun 18 2008 Daniel B. <daniel@firewall-services.com> 0.0.1-1 |
55 |
|
|
- full path for Learn script in crontab templates |
56 |
|
|
- rename to smeserver-learn |
57 |
|
|
- Fix default tag for Ham mail to [HAM] |
58 |
|
|
- Lean.pl will be executed daily by default |
59 |
|
|
|
60 |
|
|
* Wed Jun 11 2008 Emmanuel JOORIS <joorise@dot-world.net> |
61 |
|
|
- 0.0.1-0 |
62 |
|
|
- Original version |
63 |
|
|
|
64 |
|
|
%prep |
65 |
|
|
%setup |
66 |
unnilennium |
1.3 |
%patch0 -p1 |
67 |
unnilennium |
1.1 |
|
68 |
|
|
%build |
69 |
|
|
perl createlinks |
70 |
|
|
|
71 |
|
|
%install |
72 |
|
|
rm -rf $RPM_BUILD_ROOT |
73 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
74 |
|
|
rm -f %{name}-%{version}-filelist |
75 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
76 |
|
|
|
77 |
|
|
%clean |
78 |
|
|
rm -rf $RPM_BUILD_ROOT |
79 |
|
|
|
80 |
|
|
%post |
81 |
|
|
|
82 |
|
|
%postun |
83 |
|
|
|
84 |
|
|
%files -f %{name}-%{version}-filelist |
85 |
|
|
%defattr(-,root,root) |
86 |
|
|
|