1 |
# $Id: smeserver-mailsorting.spec,v 1.6 2021/08/23 00:23:16 terryfage Exp $ |
2 |
# Authority: dungog |
3 |
# Name: Stephen Noble |
4 |
|
5 |
Summary: Lets users configure procmail or maildrop rules. |
6 |
%define name smeserver-mailsorting |
7 |
Name: %{name} |
8 |
%define version 1.4 |
9 |
%define release 15 |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GPL |
13 |
URL: http://www.dungog.net/sme |
14 |
Group: SMEserver/addon |
15 |
Source: %{name}-%{version}.tar.gz |
16 |
Patch0: smeserver-mailsorting-1.4-locale-2016-03-09.patch |
17 |
Patch1: smeserver-mailsorting-bz8044-NFRdroplist.patch |
18 |
Patch2: smeserver-mailsorting-1.4-locale-2017-03-25.patch |
19 |
Patch3: smeserver-mailsorting-1.4.bz10366.respectGeekmode.patch |
20 |
Patch4: smeserver-mailsorting-1.4-locale-2017-12-02.patch |
21 |
Patch5: smeserver-mailsorting-1.4-bz10952.patch |
22 |
Patch6: smeserver-mailsorting-1.4-locale-2021-08-22.patch |
23 |
Patch7: smeserver-mailsorting-1.4-locale-2024-09-06.patch |
24 |
|
25 |
BuildArchitectures: noarch |
26 |
BuildRoot: /var/tmp/%{name}-%{version} |
27 |
Requires: e-smith-release >= 9.0 |
28 |
Requires: perl-Unicode-IMAPUtf7 |
29 |
Requires: e-smith-formmagick >= 1.4.0-12 |
30 |
Requires: perl-File-Find-Rule >= 0.33 |
31 |
Requires: maildrop |
32 |
Requires: procmail |
33 |
#Requires: smeserver-userpanel, userpanel causes endless problems |
34 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
35 |
AutoReqProv: no |
36 |
|
37 |
%description |
38 |
SME Server enhancement to enable procmail or maildrop filtering for users. |
39 |
Optionally provides user panels where users can create mail rules for themselves |
40 |
|
41 |
%changelog |
42 |
* Fri Sep 06 2024 Terry Fage <terry@fage.id.au> 1.4-15.sme |
43 |
- apply locale locale-2024-09-06.patch |
44 |
|
45 |
* Mon Aug 23 2021 Terry Fage <terry.fage@gmail.com> 1.4-14.sme |
46 |
- apply locale 2021-08-22 patch |
47 |
|
48 |
* Sun Apr 25 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.4-13.sme |
49 |
- add requirement for maildrop and procmail [SME: 11578] |
50 |
|
51 |
* Mon Feb 22 2021 Jean-Philipe Pialasse <tests@pialasse.com> 1.4-12.sme |
52 |
- add update event to avoid need of reboot [SME: 10952] |
53 |
|
54 |
* Tue Nov 24 2020 Brian Read <brianr@bjsystems.co.uk> 1.4-11.sme |
55 |
- First import to SME10 [SME: 10952] |
56 |
|
57 |
* Sat Dec 02 2017 SME Translation Server <translations@contribs.org> 1.4-10.sme |
58 |
- apply locale 2017-12-02 patch |
59 |
|
60 |
* Tue Jul 04 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.4-9.sme |
61 |
- fix geekmode not honoured [SME: 10366] |
62 |
- thanks to John Crisp for the fix. |
63 |
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday |
64 |
|
65 |
* Sat Mar 25 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.4-8.sme |
66 |
- apply locale 2017-03-25 patch |
67 |
|
68 |
* Sat Feb 25 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.4-7.sme |
69 |
- requires perl-File-Find-Rule >= 0.33 |
70 |
|
71 |
* Wed Feb 08 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.4-5.sme |
72 |
- NFR droplist to choose the directory to sort to [SME: 8044] |
73 |
- few tidying in code of panel |
74 |
|
75 |
* Wed Mar 09 2016 JP Pialasse <tests@pialasse.com> 1.4-4.sme |
76 |
- apply locale 2016-03-09 patch |
77 |
|
78 |
* Sat Aug 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.4-3.sme |
79 |
- Initial release to contribs9 |
80 |
|
81 |
* Tue Dec 2 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.4-2.sme |
82 |
- allow the possibility to use sieve script if no rules has matched. |
83 |
- Code developed by <m.schuh@neckargeo.net> Mats Schuh |
84 |
|
85 |
* Mon Jun 23 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.4-1.sme |
86 |
- Initial release to sme9 |
87 |
|
88 |
* Wed Dec 11 2013 JP Pialasse <tests@pialasse.com> 1.2-45.sme |
89 |
- fix bug as admin .procmail was not created [SME: 8023] |
90 |
|
91 |
* Fri Nov 29 2013 JP Pialasse <tests@pialasse.com> 1.2-44.sme |
92 |
- fix admin patch |
93 |
|
94 |
* Thu Nov 28 2013 Steph DL <stephdl@de-labrusse.fr> 1.2-43.sme |
95 |
Wed Nov 28 2013 --> Wed Nov 27 2013 or Thu Nov 28 2013 or Wed Dec 04 2013 or .... |
96 |
- fix [SME: 8023] [SME: 8024] |
97 |
|
98 |
* Wed Oct 09 2013 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-42.sme |
99 |
- remove space from TO_ [SME: 6061] [SME: 2264] |
100 |
|
101 |
* Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 1.2-41.sme |
102 |
- apply locale 2013-07-14 patch |
103 |
- documentation fix [SME: 7586] |
104 |
- copy keeped even if forward [SME: 6847] |
105 |
|
106 |
|
107 |
* Sun Mar 06 2011 SME Translation Server <translations@contribs.org> 1.2-40.sme |
108 |
- apply locale 2011-03-06 patch |
109 |
|
110 |
* Sun May 23 2010 SME Translation Server <translations@contribs.org> 1.2-39.sme |
111 |
- apply locale 2010-05-23 patch |
112 |
|
113 |
* Tue Mar 02 2010 SME Translation Server <translations@contribs.org> 1.2-38.sme |
114 |
- apply locale 2010-03-02 patch |
115 |
|
116 |
* Tue Oct 27 2009 SME Translation Server <translations@contribs.org> 1.2-37.sme |
117 |
- apply locale 2009-10-27 patch |
118 |
|
119 |
* Mon Aug 24 2009 SME Translation Server <translations@contribs.org> 1.2-36.sme |
120 |
- apply locale 2009-08-24 patch |
121 |
|
122 |
* Fri Jun 12 2009 Stephen Noble <support@dungog.net> 1.2-35 |
123 |
- don't escape spaces in folder names with zarafa enabled [SME: 5164] |
124 |
|
125 |
* Wed May 20 2009 SME Translation Server <translations@contribs.org> 1.2-34.sme |
126 |
- apply locale 2009-05-20 patch |
127 |
|
128 |
* Mon Apr 27 2009 SME Translation Server <translations@contribs.org> 1.2-33.sme |
129 |
- apply locale 2009-04-27 patch |
130 |
|
131 |
* Sun Mar 22 2009 Stephen Noble <support@dungog.net> 1.2-32 |
132 |
- qmail FilterOrder enabled lets maildrop filter before forwarding [SME: 5044] |
133 |
|
134 |
* Tue Mar 03 2009 SME Translation Server xyz 1.2-31 |
135 |
- apply locale 2009-03-03 patch |
136 |
|
137 |
* Sun Mar 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-30 |
138 |
- Apply 1 Mar 2009 locale patch [SME: 5018] |
139 |
|
140 |
* Sat Feb 21 2009 Stephen Noble <support@dungog.net> 1.2-29 |
141 |
- remove drop down to select folders [SME: 5016] |
142 |
|
143 |
* Sat Feb 21 2009 Stephen Noble <support@dungog.net> 1.2-28 |
144 |
- procmail sort to zarafa folders if enabled [SME: 5016] |
145 |
|
146 |
* Thu Jan 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-27 |
147 |
- Apply 1 Jan 2009 locale patch [SME: 4900] |
148 |
|
149 |
* Tue Oct 14 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-26 |
150 |
- Apply 14 Oct 2008 locale patch |
151 |
|
152 |
* Mon Sep 29 2008 Stephen Noble <support@dungog.net> - 1.2-25 |
153 |
- remove internal forwarding [SME: 4605] |
154 |
|
155 |
* Sat Sep 27 2008 Stephen Noble <support@dungog.net> - 1.2-24 |
156 |
- move .qmail fragment after SME forwarding [SME: 4602] |
157 |
|
158 |
* Sat Sep 27 2008 Stephen Noble <support@dungog.net> - 1.2-23 |
159 |
- Apply 27 Sep 2008 locale patch |
160 |
|
161 |
* Tue Jul 1 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-22 |
162 |
- Apply 1 July 2008 locale patch |
163 |
|
164 |
* Wed May 21 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-21 |
165 |
Thu May 21 2008 --> Thu May 15 2008 or Wed May 21 2008 or Thu May 22 2008 or .... |
166 |
- Apply 21 May 2008 locale patch |
167 |
- Updating the release number (it was lagging behind about 10) |
168 |
|
169 |
* Mon May 5 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-20 |
170 |
- Apply 5 May 2008 locale patch |
171 |
|
172 |
* Sun Apr 27 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-19 |
173 |
- Add common <base> tags to e-smith-formmagick's general |
174 |
|
175 |
* Tue Apr 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-18 |
176 |
- Added 22 April 2008 locale patch |
177 |
|
178 |
* Tue Apr 1 2008 Shad L. Lords <slords@mail.com> 1.2-17 |
179 |
- Update to UTF-8 translations |
180 |
|
181 |
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.2-16 |
182 |
- block generation of procmail/maildrop rules [SME: 4051] |
183 |
|
184 |
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.2-15 |
185 |
- update locale 2008-03-14 |
186 |
|
187 |
* Wed Mar 12 2008 Shad L. Lords <slords@mail.com> - 1.2-14 |
188 |
- Add requires for e-smith-formmagick for UTF-8 support [SME: 3858] |
189 |
|
190 |
* Tue Mar 11 2008 Stephen Noble <support@dungog.net> - 1.2-13 |
191 |
- Add 2008-03-11 locale patch |
192 |
|
193 |
* Fri Mar 07 2008 Stephen Noble <support@dungog.net> - 1.2-12 |
194 |
- prepare en lexicons for pootle translations |
195 |
|
196 |
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.2-11 |
197 |
- french translation fix |
198 |
|
199 |
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.2-10 |
200 |
- add french translation, thanks Sylvain Gomez |
201 |
|
202 |
* Mon Oct 29 2007 Stephen Noble <support@dungog.net> 1.2-9 |
203 |
- add spanish translation, thanks Normando Hall [SME 3503] |
204 |
|
205 |
* Sun Jul 29 2007 Stephen Noble <support@dungog.net> 1.2-8 |
206 |
- Add Requires perl-Unicode-IMAPUtf7 [SME: 3218] |
207 |
|
208 |
* Thu Jul 05 2007 Stephen Noble <support@dungog.net> 1.2-7 |
209 |
- touch processmail db, thanks dclarke |
210 |
|
211 |
* Wed Jun 13 2007 Stephen Noble <stephen@dungog.net> 1.2-6 |
212 |
- add global maildrop delete duplicate db value |
213 |
|
214 |
* Wed Jun 13 2007 Stephen Noble <stephen@dungog.net> |
215 |
- update .tar.gz to current version |
216 |
|
217 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
218 |
- Clean up spec so package can be built by koji/plague |
219 |
|
220 |
* Sat Mar 17 2007 Stephen Noble <stephen@dungog.net> |
221 |
- retry mail in .qmail [sme 2733] |
222 |
- [1.2-5] |
223 |
|
224 |
* Wed Feb 28 2007 Stephen Noble <stephen@dungog.net> |
225 |
- remove Requires: smeserver-userpanel |
226 |
- [1.2-4] |
227 |
|
228 |
* Tue Jan 9 2007 Stephen Noble <support@dungog.net> |
229 |
- remove .* after TO_ macro [sme 2264] |
230 |
- Existing mail folders search improved [sme 2265] |
231 |
- [1.2-3] |
232 |
|
233 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
234 |
- Update to new release naming. No functional changes. |
235 |
- Make Packager generic |
236 |
|
237 |
* Mon Oct 30 2006 Stephen Noble <support@dungog.net> |
238 |
- improved german support, thanks Dietmar |
239 |
- Unicode-IMAPUtf7 support [sme 1446] |
240 |
- [1.2-2] |
241 |
|
242 |
* Sat Oct 21 2006 Stephen Noble <support@dungog.net> |
243 |
- FormMagick version |
244 |
- [1.2-1] |
245 |
|
246 |
* Thu Aug 24 2006 Stephen Noble <support@dungog.net> |
247 |
- remove strict check on mailrule criterion [sme 1643] |
248 |
- fix log rotation |
249 |
- maildrop matching improved, [sme 1642] |
250 |
- allow for spaces in folder names for maildrop [sme 1640] |
251 |
- [0.9-6] |
252 |
|
253 |
* Sat May 6 2006 Stephen Noble <support@dungog.net> |
254 |
- default shell for maildrop set to /bin/bash |
255 |
- [contribs 1378] thanks mweinber neddix.de |
256 |
- [0.9-5] |
257 |
|
258 |
* Thu Apr 06 2006 Stephen Noble <support@dungog.net> |
259 |
Wed Apr 06 2006 --> Wed Apr 05 2006 or Thu Apr 06 2006 or Wed Apr 12 2006 or .... |
260 |
- delete duplicates |
261 |
- globally enabled for procmail, works ok |
262 |
- per user for maildrop, worked ok for user A, but started deleting mail for user B |
263 |
- [0.9-4] |
264 |
|
265 |
* Thu Mar 9 2006 Stephen Noble <support@dungog.net> |
266 |
- remove preun actions |
267 |
- [0.9-3] |
268 |
|
269 |
* Thu Mar 9 2006 Stephen Noble <support@dungog.net> |
270 |
- Requires: smeserver-userpanel |
271 |
- bypass admin's .qmail |
272 |
- [0.9-2] |
273 |
|
274 |
* Sun Sep 25 2005 Stephen Noble <support@dungog.net> |
275 |
- initial release |
276 |
- [0.9-1] |
277 |
|
278 |
%prep |
279 |
%setup |
280 |
%patch0 -p1 |
281 |
%patch1 -p1 |
282 |
%patch2 -p1 |
283 |
%patch3 -p1 |
284 |
%patch4 -p1 |
285 |
%patch5 -p1 |
286 |
%patch6 -p1 |
287 |
%patch7 -p1 |
288 |
|
289 |
%build |
290 |
perl createlinks |
291 |
|
292 |
LEXICONS=$(find root/etc/e-smith/{locale/,web/functions/} -type f ) |
293 |
for lexicon in $LEXICONS |
294 |
do |
295 |
/sbin/e-smith/validate-lexicon $lexicon |
296 |
done |
297 |
|
298 |
%install |
299 |
rm -rf $RPM_BUILD_ROOT |
300 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
301 |
rm -f %{name}-%{version}-filelist |
302 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
303 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
304 |
|
305 |
%clean |
306 |
|
307 |
%pre |
308 |
%preun |
309 |
|
310 |
%post |
311 |
#new installs |
312 |
if [ $1 = 1 ] ; then |
313 |
echo '' |
314 |
echo '#############################################################' |
315 |
echo ' Please visit the url below to apprehend all the db commands' |
316 |
echo ' http://wiki.contribs.org/Mailsorting#Configuration ' |
317 |
echo '#############################################################' |
318 |
echo '' |
319 |
fi |
320 |
|
321 |
#upgrades (and new installs) |
322 |
/bin/touch /home/e-smith/db/processmail |
323 |
# this one is essential to avoid to lose mails !!!! |
324 |
/sbin/e-smith/signal-event mailsorting-conf |
325 |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
326 |
/sbin/e-smith/signal-event conf-userpanel |
327 |
fi |
328 |
|
329 |
%postun |
330 |
#uninstall |
331 |
if [ $1 = 0 ] ; then |
332 |
|
333 |
echo '' |
334 |
echo '##################################' |
335 |
echo 'to disable procmail or maildrop' |
336 |
echo 'config delprop qmail FilterType' |
337 |
echo 'signal-event email-update' |
338 |
echo '##################################' |
339 |
echo '' |
340 |
|
341 |
DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` |
342 |
for db in $DBS ; do |
343 |
/sbin/e-smith/db $db delete userpanel-mailsort 2>/dev/null |
344 |
done |
345 |
fi |
346 |
|
347 |
%files -f %{name}-%{version}-filelist |
348 |
%defattr(-,root,root) |