# for dbmail-{pop3,imap,lmtpd}
# - add cronjob for dbmail-maintenance
Summary: Collection of programs for storing and retrieving mail from a SQL database
-#Summary(pl):
+Summary(pl): Zestaw programów do zapisywania i odtwarzania poczty z bazy danych SQL
Name: dbmail
Version: 2.0
%define _rc rc5
# Source0-md5: f3cca8eb615af565a388069c1ab68f08
URL: http://www.dbman.org/
BuildRequires: postgresql-devel
-#Requires(pre,post): -
-#Requires(preun): -
-#Requires(postun): -
Requires: postgresql
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-DBMAIL is a collection of programs that enables email to be
-stored in and retrieved from a database.
+DBMAIL is a collection of programs that enables email to be stored in
+and retrieved from a database.
Why is it usefull?
==================
Well, for me it's usefull because a number of reasons.
-- it enables me to create mailboxes without the need of systemusers.
-- mail is more effeciently stored and therefore it can be inserted
- an retrieved much faster dan any regular system (DBmail is currently
- able to retrieve aprox. 250 mail messages per second)
-- it's more expandable. A database is much easier to access than
+- It enables me to create mailboxes without the need of system users.
+- Mail is more effeciently stored and therefore it can be inserted
+ an retrieved much faster than any regular system (DBmail is
+ currently able to retrieve aprox. 250 mail messages per second).
+- It's more expandable. A database is much easier to access than
a flat file or a Maildir. We don't need to parse first.
-- In my case, i can easily link a mailbox to a certain client
+- In my case, I can easily link a mailbox to a certain client
which enables me to let the client maintaining his/her own mailboxes
without me needing to technically support it.
- It's scalable. You can run the dbmail programs on different servers
- talking to the same database(cluster).
+ talking to the same database (cluster).
- It is more secure. There's no need to maintain system users or write
to the filesystem. All this is done through the database.
-# %description -l pl
-# TODO
+%description -l pl
+DBMAIL to zestaw programów umo¿liwiaj±cych zapisywanie i odtwarzanie
+poczty z bazy danych.
+
+Dlaczego jest to u¿yteczne? Dla autora jest z kilku powodów:
+- Umo¿liwia tworzenie skrzynek bez wymagania u¿ytkowników systemowych.
+- Poczta jest zapisywana bardziej wydajnie i mo¿e byæ umieszczana oraz
+ odtwarzana du¿o szybciej ni¿ w normalnych systemach (DBmail
+ aktualnie jest w stanie odczytywaæ oko³o 250 listów na sekundê).
+- Jest bardziej rozszerzalne. Dostêp do bazy danych jest ³atwiejszy
+ ni¿ do p³askiego pliku lub Maildira. Nie trzeba ich najpierw
+ analizowaæ.
+- W przypadku autora - mo¿e on ³atwo pod³±czyæ skrzynkê do pewnego
+ klienta umo¿liwiaj±c utrzymywanie skrzynek przez klienta bez
+ potrzeby technicznego wsparcia administratora.
+- Jest skalowalne. Mo¿na uruchamiaæ programy dbmail na ró¿nych
+ serwerach komunikuj±cych siê z t± sam± baz± danych (klastrem).
+- Jest bardziej bezpieczne. Nie trzeba utrzymywaæ u¿ytkowników
+ systemowych ani pisaæ po systemie plików. Wszystkie jest wykonywane
+ w bazie danych.
%package mailbox2dbmail
Summary: Copy mail from an mbox file, maildir or mhdir directory to dbmail
-#Summary(pl):
+Summary(pl): Kopiowanie poczty z pliku mbox, katalogu maildir lub mhdir do dbmaila
# FIXME: better group
Group: Applications/Mail
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}-%{release}
Requires: python-modules >= 2.2
%description mailbox2dbmail
directory to dbmail. This program uses ./dbmail-smtp for injecting
the emails into DBMail.
-# %description mailbox2dbmail -l pl
-# TODO
+ %description mailbox2dbmail -l pl
+Tego programu mo¿na u¿ywaæ do kopiowania poczty z pliku mbox albo
+katalogu maildir lub mhdir do dbmaila. U¿ywa on ./dbmail-smtp do
+umieszczania listów w bazie DBMail.
%prep
%setup -q -n %{name}-%{version}%{_rc}
%build
-# if ac/am/* rebuilding is necessary, do it in this order and add
-# appropriate BuildRequires
-#%%{__gettextize}
-#%%{__aclocal}
-#%%{__autoconf}
-#%%{__autoheader}
-#%%{__automake}
%configure2_13 \
--with-pgsql
%{__make}
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README THANKS TODO EXTRAS BUGS INSTALL* sql
%attr(755,root,root) %{_bindir}/dbmail-*
-%{_libdir}/*.a
+# -devel? but headers?
+#%{_libdir}/*.a
%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*
%{_mandir}/man1/dbmail-*