Re: [exim] rewriting headers (add and remove)

Góra strony
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
Dla: Michael Johnson
CC: exim-users
Temat: Re: [exim] rewriting headers (add and remove)
On Wed, 22 Jun 2005, Michael Johnson wrote:

> > > # If both Reply-to and List-Post exist, copy original Reply-To
> > > # If List-Post exists, generate Reply-To from it
> > > headers_add     = ${if match {$header_list-post:} {\<mailto:(.*)\>} \
> > >                 {${if def:header_reply-to: \
> > >                 {X-Orig-reply-to: $header_reply-to:\nReply-To: <$1>} \
> > >                 {Reply-To: <$1>} }} \
> > >                 {} }

> > >
> > >
> > > # If both Reply-to and List-Post exist, remove original Reply-To
> > > headers_remove = ${if and { \
> > >                 {def:header_reply-to:} {def:header_list-post:}\
> > >                 } {reply-to} fail }

> > >
> >
> > That doesn't look like a complete router to me...
>
> This is the router I used in 4.43 with (apparently) no problems. I didn't
> change anything with the update to 4.51. No...seriously...I didn't change
> anything. What's missing?


The rest of the router! What you have quoted are two options settings
from a router. There must be more to a router than that; it needs a
name, and a "driver" option for a start, and probably a "transport"
option, unless it's a manualrouter 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