Skip to content

Conversation

@j4n
Copy link
Contributor

@j4n j4n commented Jan 5, 2026

Header indices start with 0; fix loop for purging DKIM headers, and also remove Authentication-Results header

@j4n j4n had a problem deploying to staging2.testrun.org January 5, 2026 17:29 — with GitHub Actions Error
@j4n j4n had a problem deploying to staging-ipv4.testrun.org January 5, 2026 17:29 — with GitHub Actions Error
@j4n j4n self-assigned this Jan 5, 2026
end

-- Delete first and presumably only occurence
odkim.del_header(ctx, "Authentication-Results", 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there can be multiple Authentication-Results headers IIRC see https://datatracker.ietf.org/doc/html/rfc7601#appendix-B.5

It's best to remove all.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no mechanism to count these, as opposed to the DKIM headers; so the last commit just tries to delete up to 10 headers.

@j4n j4n marked this pull request as draft January 6, 2026 10:08
@j4n j4n temporarily deployed to staging-ipv4.testrun.org January 6, 2026 10:09 — with GitHub Actions Inactive
@j4n j4n temporarily deployed to staging2.testrun.org January 6, 2026 10:09 — with GitHub Actions Inactive
@j4n j4n marked this pull request as ready for review January 6, 2026 10:11
Copy link
Contributor

@hpk42 hpk42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, looks good but a test is missing and would be useful also after we phase in the dkim-milter approach. Test would need to:

  • use "maildomain2" to create an address and then send a message to mail_domain. See test_securejoin in test_2_deltachat.py

  • use eg "imap_tools" (grep for it) to retrieve the headers and checking if authentication-results or dkim signature headers are present in the mailbox (on maildomain).

could you try to add such a test?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants