Re: [exim] Bug in exim 4.50

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Philip Hazel
Fecha:  
A: Dean Brooks
Cc: exim-users
Asunto: Re: [exim] Bug in exim 4.50
On Wed, 21 Jun 2006, Dean Brooks wrote:

> On Thu, Jun 22, 2006 at 12:54:30PM +1000, Russell Stuart wrote:
>
> > Apologies if this has already been fixed; I don't
> > have a current version of exim handy. The bug is
> > trivial to reproduce:
> >
> > $ exim -be '${if and { { !match {^} {} } { match {$h_To} {^} } } {no}
> > {yes} }'
> > Failed: missing 2nd string in {} after "match" inside "and{...}" condition
>
> Not sure why it gives that error, but you forgot the colon after the
> $h_To. That seems to correct the error.


The missing colon makes it look for a header called "To}" and the
following characters up to the next '}' are taken as the first argument
for "match". So the second string is missing. (Blame RFC822 for allowing
any characters except space and : in header names.)

-- 
Philip Hazel            University of Cambridge Computing Service
Get the Exim 4 book:    http://www.uit.co.uk/exim-book