On Mon, 13 Sep 2004, Frank Simon wrote:
> > You can specify headers_add only once. However, you can use it to add as
> > many headers as you like:
> >
> > headers_add = "first-header: some text ...\n\
> > secnd-header: more text ...\n\
> > third-header: yet more...."
>
> Yes, but you see, that i have conditions. Works it with
>
> headers_add = "condition{...}\
> condition{...}\"
There is no reason why it should not, except that getting the newlines
in the right places will be hard. It will end up messy, like this:
headers_add = "${if {condition1}{h1: xxx}}\
${if {condition2}{${if {condition1}{\n}}h2:xxx}}"
and it gets worse with more conditions.
You could use dummy routers:
d1:
driver = redirect
data = $local_part@$domain
condition = condition1
headers_add = h1: xxxx
redirect_router = d2
d2:
driver = redirect
data = $local_part@$domain
condition = condition2
headers_add = h2: xxxx
redirect_router = ...
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book: http://www.uit.co.uk/exim-book