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