[exim] Re: transport rule

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Andreas Metzler
Date:  
À: exim-users
Sujet: [exim] Re: transport rule
Kirill Miazine <km@???> wrote:
> * Ken Jackson [2004-12-14 11:57]:
>> When writing a transport rule in exim v4.41, to deliver an email
>> addressed to "randomlocalpart123@???" into a mbx file
>> "/home/$subdomain/mail/INBOX", what is the correct variable for
>> "$subdomain"?


>    ${sg{$domain}{^([a-z0-9.-]+)\.domain\.co\.uk\$}{\$1}}


${extract{-4}{.}{$domain}} is more elegant but will return "foo" for
both "www.foo.domain.co.uk" and "foo.domain.co.uk" while the $sg
operator would return "www.foo" and "foo" respectively.
                 cu andreas
-- 
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"