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