Hi!

On 12/18/25 07:36, Bron Gondwana wrote:
On Wed, Dec 17, 2025, at 21:51, Hannah Stern wrote:

In body change recipes, section 5 of the draft, b: can insert base64
encoded content (i.e. that has been removed or changed at some point).
It doesn't encode the final CRLF, but can encode intermediate CRLFs if
it encodes multiple lines.  Can it be specified (or considered as if
specified) that a b: recipe is invalid if it encodes bare CR or bare LF
or other characters that are not 7-bit valid characters within an
Internet Message body?

A b recipe is invalid if it encodes any CR or LF.. You can't encode multiple lines.  If you want multiple lines, each is a separate b: item.

I think that's heaps better than allowing them and having the client have to interpret the output as potentially multiple lines.

Unfortunately it looks to me that the draft says (section 5):

 b: base64string

    Decode the base64string to get the value of a line to be inserted.
    If the base64string contains an encoded CRLF then more than one
    line is being added but note that a CRLF will automatically be
    added after the decoded text -- i.e. if only one line is being
    added there MUST NOT be an encoded CRLF present. If the
    base64string is absent then a blank line is being added.

So if you're right that the actual intention was to allow only single lines for each body b: recipe, the draft might need to be changed.

(For header b: recipes, a bit below in the draft text in the same section, yes, the draft forbids CRLF, especially as it's not needed anyway with the relaxed style header canonicalization.)

Bron.

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]

Reply via email to