On 14/01/14 11:55, Mike Cardwell wrote:
* on the Tue, Jan 14, 2014 at 11:43:04AM +0000, Jeremy Harris wrote:
exim -be '${domain:${extract{-1}{,}{$recipients}}}'
Fails when the last recipient includes a comma in their name...
OK, not common. But not bulletproof either.
$recipients is based on the RCPT envelopes and doesn't contain any
names. Looks bulletproof to me.
RFC821 permits "any one of the 128 ASCII characters (no exceptions)"
so long as prefixed by a backslash, in a local-part.
--
Cheers,
Jeremy
--
## 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/