------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugs.exim.org/show_bug.cgi?id=1150 Git Commit <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #7 from Git Commit <[email protected]> 2013-10-08 19:17:05 --- Git commit: http://git.exim.org/exim.git/commitdiff/23461791bfb0685bb769328e7a38b245d9f4853b commit 23461791bfb0685bb769328e7a38b245d9f4853b Author: Todd Lyons <[email protected]> AuthorDate: Tue Oct 8 11:00:33 2013 -0700 Commit: Todd Lyons <[email protected]> CommitDate: Tue Oct 8 11:00:33 2013 -0700 Bug 1150: Enhance docs for ${addresses:} expansion --- doc/doc-docbook/spec.xfpt | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/doc/doc-docbook/spec.xfpt b/doc/doc-docbook/spec.xfpt index 31767bf..0d539b0 100644 --- a/doc/doc-docbook/spec.xfpt +++ b/doc/doc-docbook/spec.xfpt @@ -9652,6 +9652,29 @@ expansion item, which extracts the working address from a single RFC2822 address. See the &*filter*&, &*map*&, and &*reduce*& items for ways of processing lists. +To clarify "list of addresses in RFC 2822 format" mentioned above, Exim follows +a strict interpretation of header line formatting. Exim parses the bare, +unquoted portion of an email address and if it finds a comma, treats it as an +email address seperator. For the example header line: +.code +From: =?iso-8859-2?Q?Last=2C_First?= <[email protected]> +.endd +The first example below demonstrates that Q-encoded email addresses are parsed +properly if it is given the raw header (in this example, &`$rheader_from:`&). +It does not see the comma because it's still encoded as "=2C". The second +example below is passed the contents of &`$header_from:`&, meaning it gets +de-mimed. Exim sees the decoded "," so it treats it as &*two*& email addresses. +The third example shows that the presence of a comma is skipped when it is +quoted. +.code +# exim -be '${addresses:From: \ +=?iso-8859-2?Q?Last=2C_First?= <[email protected]>}' [email protected] +# exim -be '${addresses:From: Last, First <[email protected]>}' +Last:[email protected] +# exim -be '${addresses:From: "Last, First" <[email protected]>}' [email protected] +.endd .vitem &*${base62:*&<&'digits'&>&*}*& .cindex "&%base62%& expansion item" -- Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email -- ## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
