1 |
slords |
1.1 |
Summary: Lets users configure procmail or maildrop rules. |
2 |
|
|
%define name smeserver-mailsorting |
3 |
|
|
Name: %{name} |
4 |
|
|
%define version 1.2 |
5 |
dungog |
1.14 |
%define release 16 |
6 |
slords |
1.1 |
Version: %{version} |
7 |
|
|
Release: %{release}%{?dist} |
8 |
|
|
License: GPL |
9 |
|
|
URL: http://www.dungog.net/sme |
10 |
|
|
Group: SMEserver/addon |
11 |
|
|
Source: %{name}-%{version}.tar.gz |
12 |
|
|
Patch0: smeserver-mailsorting-1.2-maildropdups.patch |
13 |
|
|
Patch1: smeserver-mailsorting-1.2-esLocale.patch |
14 |
dungog |
1.7 |
Patch2: smeserver-mailsorting-1.2-frLocale3.patch |
15 |
dungog |
1.10 |
Patch3: smeserver-mailsorting-1.2-pootle.patch |
16 |
dungog |
1.11 |
Patch4: smeserver-mailsorting-1.2-locale-2008-03-11.patch |
17 |
dungog |
1.13 |
Patch5: smeserver-mailsorting-1.2-locale-2008-03-14.patch |
18 |
dungog |
1.14 |
Patch6: smeserver-mailsorting-1.2-geekmode.patch |
19 |
dungog |
1.13 |
|
20 |
slords |
1.1 |
BuildArchitectures: noarch |
21 |
|
|
BuildRoot: /var/tmp/%{name}-%{version} |
22 |
|
|
Requires: e-smith-release >= 7.0, |
23 |
|
|
Requires: perl-Unicode-IMAPUtf7 |
24 |
slords |
1.12 |
Requires: e-smith-formmagick >= 1.4.0-10 |
25 |
slords |
1.1 |
#Requires: smeserver-userpanel, userpanel causes endless problems |
26 |
|
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
27 |
|
|
AutoReqProv: no |
28 |
|
|
|
29 |
|
|
%description |
30 |
|
|
SME Server enhancement to enable procmail or maildrop filtering for users. |
31 |
|
|
Optionally provides user panels where users can create mail rules for themselves |
32 |
|
|
|
33 |
|
|
%changelog |
34 |
dungog |
1.14 |
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.2-16 |
35 |
|
|
- block generation of procmail/maildrop rules [SME: 4051] |
36 |
|
|
|
37 |
dungog |
1.13 |
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.2-15 |
38 |
|
|
- update locale 2008-03-14 |
39 |
|
|
|
40 |
slords |
1.12 |
* Wed Mar 12 2008 Shad L. Lords <slords@mail.com> - 1.2-14 |
41 |
|
|
- Add requires for e-smith-formmagick for UTF-8 support [SME: 3858] |
42 |
|
|
|
43 |
dungog |
1.11 |
* Tue Mar 11 2008 Stephen Noble <support@dungog.net> - 1.2-13 |
44 |
|
|
- Add 2008-03-11 locale patch |
45 |
|
|
|
46 |
|
|
* Sat Mar 07 2008 Stephen Noble <support@dungog.net> - 1.2-12 |
47 |
dungog |
1.10 |
- prepare en lexicons for pootle translations |
48 |
|
|
|
49 |
dungog |
1.8 |
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.2-11 |
50 |
|
|
- french translation fix |
51 |
|
|
|
52 |
dungog |
1.5 |
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.2-10 |
53 |
|
|
- add french translation, thanks Sylvain Gomez |
54 |
dungog |
1.3 |
|
55 |
slords |
1.1 |
* Mon Oct 29 2007 Stephen Noble <support@dungog.net> 1.2-9 |
56 |
|
|
- add spanish translation, thanks Normando Hall [SME 3503] |
57 |
|
|
|
58 |
|
|
* Sun Jul 29 2007 Stephen Noble <support@dungog.net> 1.2-8 |
59 |
|
|
- Add Requires perl-Unicode-IMAPUtf7 [SME: 3218] |
60 |
|
|
|
61 |
|
|
* Thu Jul 05 2007 Stephen Noble <support@dungog.net> 1.2-7 |
62 |
|
|
- touch processmail db, thanks dclarke |
63 |
|
|
|
64 |
|
|
* Wed Jun 13 2007 Stephen Noble <stephen@dungog.net> 1.2-6 |
65 |
|
|
- add global maildrop delete duplicate db value |
66 |
|
|
|
67 |
|
|
* Wed Jun 13 2007 Stephen Noble <stephen@dungog.net> |
68 |
|
|
- update .tar.gz to current version |
69 |
|
|
|
70 |
|
|
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
71 |
|
|
- Clean up spec so package can be built by koji/plague |
72 |
|
|
|
73 |
|
|
* Sat Mar 17 2007 Stephen Noble <stephen@dungog.net> |
74 |
|
|
- retry mail in .qmail [sme 2733] |
75 |
|
|
- [1.2-5] |
76 |
|
|
|
77 |
|
|
* Wed Feb 28 2007 Stephen Noble <stephen@dungog.net> |
78 |
|
|
- remove Requires: smeserver-userpanel |
79 |
|
|
- [1.2-4] |
80 |
|
|
|
81 |
|
|
* Tue Jan 9 2007 Stephen Noble <support@dungog.net> |
82 |
|
|
- remove .* after TO_ macro [sme 2264] |
83 |
|
|
- Existing mail folders search improved [sme 2265] |
84 |
|
|
- [1.2-3] |
85 |
|
|
|
86 |
|
|
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
87 |
|
|
- Update to new release naming. No functional changes. |
88 |
|
|
- Make Packager generic |
89 |
|
|
|
90 |
|
|
* Mon Oct 30 2006 Stephen Noble <support@dungog.net> |
91 |
|
|
- improved german support, thanks Dietmar |
92 |
|
|
- Unicode-IMAPUtf7 support [sme 1446] |
93 |
|
|
- [1.2-2] |
94 |
|
|
|
95 |
|
|
* Sat Oct 21 2006 Stephen Noble <support@dungog.net> |
96 |
|
|
- FormMagick version |
97 |
|
|
- [1.2-1] |
98 |
|
|
|
99 |
|
|
* Thu Aug 24 2006 Stephen Noble <support@dungog.net> |
100 |
|
|
- remove strict check on mailrule criterion [sme 1643] |
101 |
|
|
- fix log rotation |
102 |
|
|
- maildrop matching improved, [sme 1642] |
103 |
|
|
- allow for spaces in folder names for maildrop [sme 1640] |
104 |
|
|
- [0.9-6] |
105 |
|
|
|
106 |
|
|
* Sat May 6 2006 Stephen Noble <support@dungog.net> |
107 |
|
|
- default shell for maildrop set to /bin/bash |
108 |
|
|
- [contribs 1378] thanks mweinber neddix.de |
109 |
|
|
- [0.9-5] |
110 |
|
|
|
111 |
|
|
* Wed Apr 6 2006 Stephen Noble <support@dungog.net> |
112 |
|
|
- delete duplicates |
113 |
|
|
- globally enabled for procmail, works ok |
114 |
|
|
- per user for maildrop, worked ok for user A, but started deleting mail for user B |
115 |
|
|
- [0.9-4] |
116 |
|
|
|
117 |
|
|
* Thu Mar 9 2006 Stephen Noble <support@dungog.net> |
118 |
|
|
- remove preun actions |
119 |
|
|
- [0.9-3] |
120 |
|
|
|
121 |
|
|
* Thu Mar 9 2006 Stephen Noble <support@dungog.net> |
122 |
|
|
- Requires: smeserver-userpanel |
123 |
|
|
- bypass admin's .qmail |
124 |
|
|
- [0.9-2] |
125 |
|
|
|
126 |
|
|
* Sun Sep 25 2005 Stephen Noble <support@dungog.net> |
127 |
|
|
- initial release |
128 |
|
|
- [0.9-1] |
129 |
|
|
|
130 |
|
|
%prep |
131 |
|
|
%setup |
132 |
|
|
%patch0 -p1 |
133 |
|
|
%patch1 -p1 |
134 |
dungog |
1.7 |
%patch2 -p1 |
135 |
dungog |
1.10 |
%patch3 -p1 |
136 |
dungog |
1.11 |
%patch4 -p1 |
137 |
dungog |
1.13 |
%patch5 -p1 |
138 |
dungog |
1.14 |
%patch6 -p1 |
139 |
slords |
1.1 |
|
140 |
|
|
%build |
141 |
|
|
perl createlinks |
142 |
|
|
|
143 |
dungog |
1.9 |
LEXICONS=$(find root/etc/e-smith/{locale/,web/functions/} -type f ) |
144 |
|
|
for lexicon in $LEXICONS |
145 |
|
|
do |
146 |
|
|
/sbin/e-smith/validate-lexicon $lexicon |
147 |
|
|
done |
148 |
|
|
|
149 |
slords |
1.1 |
%install |
150 |
|
|
rm -rf $RPM_BUILD_ROOT |
151 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
152 |
|
|
rm -f %{name}-%{version}-filelist |
153 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
154 |
|
|
echo "%doc COPYING" >> %{name}-%{version}-filelist |
155 |
|
|
|
156 |
|
|
%clean |
157 |
|
|
cd .. |
158 |
|
|
rm -rf %{name}-%{version} |
159 |
|
|
|
160 |
|
|
%pre |
161 |
|
|
%preun |
162 |
|
|
|
163 |
|
|
%post |
164 |
|
|
#new installs |
165 |
|
|
if [ $1 = 1 ] ; then |
166 |
|
|
echo ' ' |
167 |
dungog |
1.10 |
echo 'http://www.dungog.net/wiki/Smeserver-mailsorting#Configuration' |
168 |
slords |
1.1 |
fi |
169 |
|
|
|
170 |
|
|
#upgrades (and new installs) |
171 |
|
|
/bin/touch /home/e-smith/db/processmail |
172 |
|
|
/sbin/e-smith/signal-event mailsorting-conf |
173 |
dungog |
1.10 |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
174 |
|
|
/sbin/e-smith/signal-event conf-userpanel |
175 |
|
|
fi |
176 |
slords |
1.1 |
|
177 |
|
|
%postun |
178 |
|
|
#uninstall |
179 |
|
|
if [ $1 = 0 ] ; then |
180 |
|
|
|
181 |
|
|
echo '' |
182 |
|
|
echo 'to disable procmail or maildrop' |
183 |
|
|
echo 'config delprop qmail FilterType' |
184 |
|
|
echo 'signal-event email-update' |
185 |
|
|
echo '' |
186 |
|
|
|
187 |
|
|
DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` |
188 |
|
|
for db in $DBS ; do |
189 |
|
|
/sbin/e-smith/db $db delete userpanel-mailsort 2>/dev/null |
190 |
|
|
done |
191 |
|
|
fi |
192 |
|
|
|
193 |
|
|
%files -f %{name}-%{version}-filelist |
194 |
|
|
%defattr(-,root,root) |