Re: [exim] explode adresses?

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Jakob Hirsch
Data:  
Para: Jan Johansson
CC: exim-users
Asunto: Re: [exim] explode adresses?
Jan Johansson wrote:

> Lets say I have the below address, and I want to do a require_file
> lookup on the string "between the last = and the @" so in this case I
> would like to be able to extract the "bulletin" part for use in my
> routers/transports.


${if match{$your_variable}{\N=(\w+)@\N} {$1}fail}

assuming \w (= [0-9a-zA-Z_]) contains what you use.