diff --git a/ChangeLog b/ChangeLog index 7cde1b2..afbf4a1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,8 @@ UNRELEASED Version 1.1.7 - Correct ARC signing for AR headers with authres-version or comments before resinfo (LP: #2052526) - Thanks to Nikolay Vizovitin for the report and the fix + - Correct line separtor after AAR header field (LP: #2049018) - Thanks to + Nikolay Vizovitin for the report and the fix 2024-04-14 Version 1.1.6 - Use raw byte string for regex; fixes SyntaxWarning in Python 3.12 due to diff --git a/dkim/__init__.py b/dkim/__init__.py index c155974..758efdd 100644 --- a/dkim/__init__.py +++ b/dkim/__init__.py @@ -1118,8 +1118,7 @@ class ARC(DomainSigner): arc_headers = [] # Compute ARC-Authentication-Results - aar_value = ("i=%d; " % instance).encode('utf-8') + auth_results - if aar_value[-1] != b'\n': aar_value += b'\r\n' + aar_value = ("i=%d; " % instance).encode('utf-8') + auth_results.rstrip() + self.linesep new_arc_set.append(b"ARC-Authentication-Results: " + aar_value) self.headers.insert(0, (b"arc-authentication-results", aar_value))