On Fri, 10 Oct 1997, David Sheryn wrote:
> I have an autoreply question. I'd like to predicate the use of the log and
> once options on the existance of those files (or failing that another control
> file) with a config setting as below. However exim doesn't seem to like this.
>
> # Testing autoreplies
> autoreply_t: driver = autoreply;
> to = $reply_address,
> user = $local_part,
> file = autoreply.txt,
> log = autoreply.log,
> once = "${if exists{autoreply.once}{autoreply.once}{}}"
>
> I tried an explicity "fail" as well, but it doesn't seem to like that either.
> Has anyone any bright ideas as to how I might do this, or is it not currently
> possible ?
I don't think this is currently possible, unless you test for the files'
existence in the director that sends messages to this transport. You
would need to have two copies of the director, one with "require_files="
to test for the files, and another without. Each would direct to a
different transport, one with the relevant option, the other without.
Oh, heck. Since you want to test 2 files you are going to end up with 4
directors. Messy.
I have noted a suggestion to make Exim treat once = "" as if once were
not set, and the same for log.
--
Philip Hazel University Computing Service,
ph10@??? New Museums Site, Cambridge CB2 3QG,
P.Hazel@??? England. Phone: +44 1223 334714
--
* This is sent by the exim-users mailing list. To unsubscribe send a
mail with subject "unsubscribe" to exim-users-request@???
* Exim information can be found at http://www.exim.org/