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