Re: [exim] only numbers

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: exim
CC: Brent Clark
Assumpte: Re: [exim] only numbers
On Tue, 31 May 2005, Tony Finch wrote:

> On Tue, 31 May 2005, Brent Clark wrote:
> >
> > local_parts = bookings
> > local_part_prefix = *-
> >
> > Would there be anyway to have the wildcard to be only numbers.
>
> local_parts = ^[0-9]+-bookings$
>
> Note that this will change the behaviour of the transport because the
> $local_part_prefix variable will not be set and it won't be stripped from
> $local_part.


Alternatively:

local_part_prefix = *-
condition = ${if match {$local_part_prefix}{^\\d+\$}}

I hope that works. I have not tested it.

-- 
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