Re: [exim] allow headers_remove|add options to be given mult…

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Tony Finch
Fecha:  
A: mh+debian-packages, de276126, Jari Aalto
Cc: exim-users
Asunto: Re: [exim] allow headers_remove|add options to be given multiple times
> > remote_smtp:
> >   debug_print = "T: remote_smtp for $local_part@$domain"
> >   driver = smtp
> > .ifdef MY_SMTP_DISABLE_SENDER
> >   headers_remove = Sender
> > .endif
> > .ifdef SA_EXIM_SMTP_HEADERS_REMOVE
> >   headers_remove = X-SA-Do-Not-Run \
> >                  : X-SA-Exim-Scanned \
> >                  : X-SA-Exim-Rcpt-To \
> >                  : X-SA-Exim-Mail-From \
> >                  : X-SA-Exim-Version \
> >                  : X-SA-Exim-Connect-IP
> > .endif

> >
> > Unfortunately option 'headers_remove' cannot be used multiple times:


You can probably acheive what you want by doing the following (untested):

headers_remove = \
.ifdef MY_SMTP_DISABLE_SENDER
    Sender :\
.endif
.ifdef SA_EXIM_SMTP_HEADERS_REMOVE
    X-SA-Exim-Blah :\
.endif


and remember to leave a blank line afterwards.

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}