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

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Heiko Schlittermann
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] ${domain:$recipients}}
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@???}'


And see the spec:

${domain:<string>}
    The string is interpreted as an RFC 2822 address and the domain is
    extracted from it. If the string does not parse successfully, the result is
    empty.


If $recipients contains >1 recipient, it's not an parsable RFC2822
address anymore.


    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)-