>> 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.
But.. I must be slow here. How can I use that for a "require_file"
Heer is the code snippet
sympa_bounce_virtuals:
driver = accept
# domains = ListDomains
local_part_prefix = bounce+
local_parts = !.bin:!.etc
require_files =
/home/sympa/expl/${lookup{$domain}lsearch{/etc/sympa-virtual-mappings.co
nf}}/${local_part}
# retry_use_local_part
transport = sympa_bounce_transport_virtuals
the mappings.conf is
scooter:~# cat /etc/sympa-virtual-mappings.conf
ffd.nu:
www.ffd.nu
lists.mupp.net: lists.mupp.net
scooter:~#
So in the "bulletiner" case, I need to see if
/home/sympa/explode/
www.ffd.nu/bulletin exists.