Re: [exim] Host Pattern Matching

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Philip Hazel
Data:  
Para: Andreas Pettersson
CC: exim-users
Asunto: Re: [exim] Host Pattern Matching
On Thu, 21 Jun 2007, Andreas Pettersson wrote:

> So the answer is to use a regexp instead.
> hosts = ^.*\.yahoo\.


That's not quite right. Try either of these

hosts = \N^.*\.yahoo\.\N
hosts = \N^.*?\.yahoo\.\N

The second is a bit more efficient when it matches (about the same when
it doesn't).

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