Autor: Marc Perkel Data: Para: exim-users Asunto: Re: [exim] Possible Exim Bug
It's so not intuitive that I would call it a bug. There should be an
easy way to modify headers in a router.
Nico Erfurth wrote:
> Marc Perkel wrote:
>
>> I'm using the redirect router to add some headers and remove some
>> headers. However - if I set "data =" the router has no effect. But if
>> I set "data = $local_part@$domain" then the header changes work.
>
>
> IIRC the redirect router returns DECLINED when data is empty. So it
> does not use the values of header_remove/header_add.
>
> To quote the relevant from from spec.txt:
>
> From 22.10:
> <quote>
> data
> Type: string, expanded
> Default: unset
>
> This option is mutually exclusive with file. One or other of them must
> be set, but not both. The contents of data are expanded, and then used
> as the list of forwarding items, or as a set of filtering
> instructions. If the expansion is forced to fail, or the result is an
> empty string or a string that has no effect (consists entirely of
> comments), the router declines.
> </quote>
>
> From 15:
> <quote>
> headers_add
> Type: string, expanded
> Default: unset
>
> This option specifies a string of text that is expanded at routing
> time, and associated with any addresses that are processed by the
> router when delivering a message. This option has no effect when an
> address is just being verified.
> </quote>
>
> ... as the router declines, the address is NOT processed.
>
> Nico
>