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
Sat, 6 Nov 2004 11:03:21 +0100
tags 267706 pending
thanks
On 2004-08-24 Mike Fedyk <mfedyk@matchmail.com> wrote:
> Andreas Metzler wrote:
[...]
> >I think it is possible to make exim use procmail if either
> >/etc/procmailrc or ~/.procmailrc exist
[..]
>> I assume you'd be satisfied by that?
> Yes.
[...]
Ok, fixed in CVS with this change:
- require_files = ${local_part}:${home}/.procmailrc:+/usr/bin/procmail
+ # emulate OR with "if exists"-expansion
+ require_files = ${local_part}:\
+ ${if exists{/etc/procmailrc}\
+ {/etc/procmailrc}{${home}/.procmailrc}}:\
+ +/usr/bin/procmail
cu andreas
--
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"