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