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