Heiko Schlittermann <[email protected]> (Di 14 Jan 2014 12:20:45 CET): > Cyborg <[email protected]> (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:[email protected], [email protected]}' > exim -be '${domain:[email protected]}'
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}{,}{[email protected], [email protected]}}}'
($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)-
signature.asc
Description: Digital signature
-- ## List details at https://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
