Re: [exim] ${domain:$recipients}}

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Heiko Schlittermann
Datum:  
To: exim-users
Betreff: Re: [exim] ${domain:$recipients}}
Heiko Schlittermann <hs@???> (Di 14 Jan 2014 12:20:45 CET):
> Cyborg <cyborg2@???> (Di 14 Jan 2014 12:10:04 CET):
> >
> > Hi all,
> >
> > if $recipients contain more than one domain, is it defined what
> > ${domain:$recipients}} will return ?
> >
> > Is it the obviose domainpart of the "last" entry in the list ?
>
> Why should it be obvisious?
>
>
> Try
>     exim -be '${domain:ab@???, foo@???}'
>     exim -be '${domain:ab@???}'


If you want to get the domain of the last entry, try

    exim -be '${domain:${extract{-1}{,}{$recipients}}}'


or for testing

    exim -be '${domain:${extract{-1}{,}{ab@???, foo@???}}}'


($recipients contains a 'comma space' separated list, according to the
specs)

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: 7CBF764A -
 gnupg fingerprint: 9288 F17D BBF9 9625 5ABC  285C 26A9 687E 7CBF 764A -
(gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2  7E92 EE4E AC98 48D0 359B)-