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