Summary: Mail delivery agent with filtering abilities Name: maildrop Version: 2.5.0 Release: 13%{?dist} # Exception is explicit permission to link to OpenSSL License: GPLv2 with exceptions Group: System Environment/Daemons URL: http://www.courier-mta.org/maildrop/ Source0: http://prdownloads.sourceforge.net/courier/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: automake, libtool, autoconf BuildRequires: gcc-c++, gdbm-devel, db4-devel, pcre-devel BuildRequires: gawk #Once this is available uncomment and rebuild #BuildRequires: courier-authlib-devel %description maildrop is the mail filter/mail delivery agent that's used by the Courier Mail Server. This is a standalone build of the maildrop mail filter that can be used with other mail servers. maildrop is a replacement for your local mail delivery agent. maildrop reads a mail message from standard input, then delivers the message to your mailbox. maildrop knows how to deliver mail to mbox-style mailboxes, and maildirs. maildrop optionally reads instructions from a file, which describe how to filter incoming mail. These instructions can direct maildrop to deliver the message to an alternate mailbox, or forward it somewhere else. Unlike procmail, maildrop uses a structured filtering language. maildrop is written in C++, and is significantly larger than procmail. However, it uses resources much more efficiently. Unlike procmail, maildrop will not read a 10 megabyte mail message into memory. Large messages are saved in a temporary file, and are filtered from the temporary file. If the standard input to maildrop is a file, and not a pipe, a temporary file will not be necessary. maildrop checks the mail delivery instruction syntax from the filter file, before attempting to deliver a message. Unlike procmail, if the filter file contains syntax errors, maildrop terminates without delivering the message. The user can fix the typo without causing any mail to be lost. %prep %setup -q #mv automake.fix automake.fix.we-do-want-it-verbose #touch automake.fix #find . -name Makefile.am -exec touch {} \; %build #libtoolize #autoreconf %configure --disable-shared \ --enable-use-flock=1 --with-locking-method=fcntl \ --enable-use-dotlock=1 \ --enable-syslog=1 \ --enable-sendmail=%{_sbindir}/sendmail # prevent 'install: will not overwrite just-created' error #Â notification sent to courier-maildrop@lists.sourceforge.net on 2009/09/04 #sed -i 's|DELIVERQUOTAMAN = maildirquota.7 deliverquota.8|DELIVERQUOTAMAN =|' Makefile make %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} htmldir=%{_defaultdocdir}/%{name}-%{version} cp -pr COPYING COPYING.GPL AUTHORS %{buildroot}%{_defaultdocdir}/%{name}-%{version} cp -pr README README.postfix ChangeLog UPGRADE %{buildroot}%{_defaultdocdir}/%{name}-%{version} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc %{_defaultdocdir}/%{name}-%{version} %attr(6755,root,mail) %{_bindir}/maildrop %attr(6755,root,mail) %{_bindir}/lockmail %{_bindir}/deliverquota %{_bindir}/mailbot %{_bindir}/maildirmake %{_bindir}/makemime %{_bindir}/reformail %{_bindir}/reformime %{_bindir}/makedat %{_bindir}/makedatprog %{_mandir}/man1/*.1* %{_mandir}/man5/*.5* %{_mandir}/man7/*.7* %{_mandir}/man8/*.8* %changelog * Mon Jul 5 2010 Axel Thimm <Axel.Thimm@ATrpms.net> - 2.5.0-13 - Update to 2.5.0. * Sun Feb 14 2010 Axel Thimm <Axel.Thimm@ATrpms.net> - 2.4.0-12 - Update to 2.4.0. - Fixes CVE-2010-0301. * Fri Sep 4 2009 Milos Jakubicek <xjakub@fi.muni.cz> - 2.0.4-11 - Fix FTBFS: prevent 'install: will not overwrite just-created' error * Wed May 21 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.0.4-7 - fix license tag * Sat Mar 8 2008 Axel Thimm <Axel.Thimm@ATrpms.net> - 2.0.4-6 - Try a better license tag. - Remove all devel parts - this is not upstream-ready yet. - Make the build verbose. * Sun Jan 13 2008 Axel Thimm <Axel.Thimm@ATrpms.net> - 2.0.4-5 - Go static. * Wed Oct 24 2007 Axel Thimm <Axel.Thimm@ATrpms.net> - 2.0.4-4 - Add gawk to build dependencies. * Sat Aug 4 2007 Axel Thimm <Axel.Thimm@ATrpms.net> - 2.0.4-3 - Update to 2.0.4. * Sun Mar 25 2007 Axel Thimm <Axel.Thimm@ATrpms.net> - 2.0.3-2 - Initial build.