From b1d11d7747c0d82bd78d3b632a734988ec33072c Mon Sep 17 00:00:00 2001 From: link2xt Date: Wed, 3 Jul 2024 20:36:31 +0000 Subject: [PATCH] Revert 57c29c14a40fa336687dc416b878c074c1119f53 Apparently this causes outlook.com messages to be rejected even though they don't use `l=` tag. --- CHANGELOG.md | 3 --- cmdeploy/src/cmdeploy/opendkim/final.lua | 6 +----- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e0120285..df7f0851 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,9 +5,6 @@ - Test and fix for attempts to create inadmissible accounts ([#333](https://github.com/deltachat/chatmail/pull/321)) -- Reject DKIM signatures that do not cover the whole message body. - ([#321](https://github.com/deltachat/chatmail/pull/321)) - - check that OpenPGP has only PKESK, SKESK and SEIPD packets ([#323](https://github.com/deltachat/chatmail/pull/323), [#324](https://github.com/deltachat/chatmail/pull/324)) diff --git a/cmdeploy/src/cmdeploy/opendkim/final.lua b/cmdeploy/src/cmdeploy/opendkim/final.lua index 3b8858e5..133f7784 100644 --- a/cmdeploy/src/cmdeploy/opendkim/final.lua +++ b/cmdeploy/src/cmdeploy/opendkim/final.lua @@ -19,11 +19,7 @@ for i = 1, nsigs do -- Any valid signature that was not ignored like this -- means the message is acceptable. if sigres == 0 then - -- Do not accept the signature if it does not cover the whole body - -- of the message by using `l=` tag. - if odkim.sig_canonlength(ctx, sig) < odkim.sig_bodylength(ctx, sig) then - return nil - end + return nil end end