Bug#267706: exim4: Exim should use procmail if it is installed even if there is not a ~/.procmailrc file

Andreas Metzler Andreas Metzler <ametzler@downhill.at.eu.org>, 267706@bugs.debian.org
Tue, 24 Aug 2004 09:23:21 +0200


tags 267706 - patch
severity 267706 wishlist
thanks
On 2004-08-24 Mike Fedyk <mfedyk@matchmail.com> wrote:
> Package: exim4
> Version: 4.34-4
> Severity: normal
> Tags: patch

> Procmail defaults to delivering to /var/spool/mail just like exim, and with
> this configuration every user doesn't require a dummy ~/.procmailrc file to
> use the global procmail rules.
[...]
> -  require_files = ${local_part}:${home}/.procmailrc:+/usr/bin/procmail
> +  require_files = +/usr/bin/procmail
[...]

This will cause delivery by procmail even if there are no "global
procmail rules". And I do not think that is desirable, it is just
useless overhead in this case. (imho the more common szenario is that
procmail is installed because _some_ users want/need it.)

I think it is possible to make exim use procmail if either
/etc/procmailrc or ~/.procmailrc exist, something like

require_files = ${local_part}:${if stat{/etc/procmailrc}{/etc/procmailrc}{ ${home}/.procmailrc}}:+/usr/bin/procmail

will probably do the trick. - I assume you'd be satisfied by that?
                cu andreas