Skip to content

writeTo can emit bare line endings while signing a CRLF-normalized body #25

Open

Description

@bbottema

DkimSigner normalizes body line endings to CRLF before hashing, but DkimMessage.writeTo emits the original serialized body. Existing golden fixtures deliberately include bare CR/LF and preserve those bytes; a raw-stream verifier sees different data from the normalized signature, while SMTP transport normalization can reconcile it. Changing writeTo to normalize output would change retained golden bytes and serialized-message behavior. Keep this open for an explicit output-semantics decision and migration discussion; do not casually regenerate fixtures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions