Hi!
On 9/6/26 16:34, Richard Clayton wrote:
In message <[email protected]>, Vittorio
<[email protected]> writes
> The complex characters in an RFC5321 Forward-path are handled the same
> way regardless of what surrounds them. The current spec handles them
> with base64: rt= is a tag-value field (rt=base64string *(","
> base64string), Section 8.6) whose values are base64-encoded precisely
> because the Forward-path "can include characters which would confuse
> naive parsers." That is a tag-value field solving the quoting problem
> without any JSON.
> There is a second way to avoid the problem entirely: carry one address
> per header, so no value ever contains more than a single address and
> there is no internal separator to protect. No encoding is needed
because
> there is nothing to disambiguate.
that is incorrect
The issue is not that an email address can contain a comma (which of
course would not occur if we did not have more than one address)
It would still be the case:
<@hop1,@hop2:foo@bar>
<"Some,sender"@bar>
Or with semicolon:
<"foo;bar"@baz>
an email address can also contain a = character ... and that means that
a naive parser which believes that (<char>)<char><equals><string> is a
valid tag is going to make a mess of it
That's IMO less of an issue. Only the first '=' after the start or after
a ';' is relevant.
So i=1;mf=<"foo = bar"@baz>; s=...; ...; would be clearly parsable
unless the parser is really buggy (and then the parser would also
stumble over nonces containing '=').
[...]
Note also that recipes can be contain a very wide range of characters
when entire header fields are being replaced.
Yes, recipes had multiple yet larger issues with a more naive
representation in tag-value syntax. I remember finding some.
tl;dr: I'm not so in for revisiting the JSON/base64 stuff yet again.
Hannah.
--
Hannah Stern
Software Developer
Mail Transfer Development
1&1 Mail & Media Development & Technology GmbH | | |
Phone: +49 721 91374-4519
E-Mail: [email protected] | Web: www.mail-and-media.com www.gmx.net
www.web.de www.mail.com www.united-internet-media.de
Hauptsitz Montabaur, Amtsgericht Montabaur, HRB 5452
Geschäftsführer: Alexander Charles, Dr. Michael Hagenau, Thomas Ludwig,
Dr. Verena Patzelt
Member of United Internet
Diese E-Mail kann vertrauliche und/oder gesetzlich geschützte
Informationen enthalten. Wenn Sie nicht der bestimmungsgemäße Adressat
sind oder diese E-Mail irrtümlich erhalten haben, unterrichten Sie bitte
den Absender und vernichten Sie diese E-Mail. Anderen als dem
bestimmungsgemäßen Adressaten ist untersagt, diese E-Mail zu speichern,
weiterzuleiten oder ihren Inhalt auf welche Weise auch immer zu verwenden.
This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient of this e-mail, you are hereby
notified that saving, distribution or use of the content of this e-mail
in any way is prohibited. If you have received this e-mail in error,
please notify the sender and delete the e-mail.
_______________________________________________
Ietf-dkim mailing list -- [email protected]
To unsubscribe send an email to [email protected]