Hmm… There does seem to be an oddity. Jasen gave a link to an "extreme
example" included in the RFC:
https://tools.ietf.org/html/rfc5322#appendix-A.5
Trying this in various forms using Exim 4.90.1 on Ubuntu shows up some
interesting things:
exim -v -be '${address:Pete(A nice chap) <pete@???>}'
gives pete@???
exim -v -be '${address:Pete(A nice \) chap) <pete@???>}'
gives the empty string, suggesting Exim thinks it's a parse error
exim -v -be '${address:Pete(A nice chap) <pete(his account)@silly.test(his
host)>}'
gives pete(his account)@silly.test(his host)
>From the RFC's description I think it's expecting all to yield
pete@???
The same "extreme example" has some even more fiendish addresses in the
samples To and Cc headers which I've not tried.
Incidentally, the first couple of times I tried the above I forget to wrap
the address within ${address: … } and the result was Exim generating a
PANIC:
exim -v -be 'Pete(A nice chap) <pete(his account)@silly.test(his host)>'
gives
LOG: PANIC
Exim configuration error in line 1590 of /etc/exim4/exim4.conf:
malformed macro definition
where line 1590 is the final line of my exim4.conf file (a comment). Trying
this again with the -d+all option reveals nothing helpful. Is this another
issue?
Cheers,
Mike B-)
On Wed, 13 Feb 2019 at 10:23, Jeremy Harris via Exim-users <
exim-users@???> wrote:
> On 13/02/2019 05:41, Jasen Betts via Exim-users wrote:
> > the string expansion operator ${address:
> >
> > doesn't seem to strip RFC5322 comments (described in section 3.2.2)
> >
> > https://tools.ietf.org/html/rfc5322#section-3.2.2
> >
> > An extreme example:
> >
> > https://tools.ietf.org/html/rfc5322#appendix-A.5
> >
> > Should it be doing that?
>
> My reading of the docs says "yes, it should".
> An example for me to feed to "exim -be" ?
> --
> Thanks,
> 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/
>
--
Systems Administrator & Change Manager
IT Services, University of York, Heslington, York YO10 5DD, UK
Tel: +44-(0)1904-323811
Web:
www.york.ac.uk/it-services
Disclaimer:
www.york.ac.uk/docs/disclaimer/email.htm