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"