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

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Jari Aalto
Date:  
À: Tony Finch
CC: exim-users, de276126, mh+debian-packages
Sujet: 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.


Thank you. Please consider supporting the multiple invocations of
"headers-{remove,add}' as well in future releases. It would be more
versatile approach and allow code to be included in separate files.

Jari