Incorrect line separator after AAR header
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dkimpy |
Fix Released
|
Low
|
Scott Kitterman |
Bug Description
Given a mail message with '\n' as linesep, generated AAR header ending line separator is '\r\n', which is incorrect. E.g.:
headers == [
b'ARC-Seal: i=1; cv=none; a=rsa-sha256; d=test1.
b'ARC-
b'ARC-
]
message[:80] == b'Return-Path: <email address hidden>
When assembling the resulting message this produces headers with inconsistent line separators. This, in turn, results in certain clients (such as Outlook) incorrectly displaying the message (showing headers instead of / in addition to body).
Library version: dkimpy==1.1.5
This is fixed with the following patch:
--- dkim/__
+++ dkim/__init__.py 2024-01-11 10:43:07.247551542 +0000
@@ -1120,8 +1120,7 @@
arc_headers = []
# Compute ARC-Authenticat
- aar_value = ("i=%d; " % instance)
- if aar_value[-1] != b'\n': aar_value += b'\r\n'
+ aar_value = ("i=%d; " % instance)
new_
self.
Changed in dkimpy: | |
status: | New → Fix Committed |
importance: | Undecided → Low |
assignee: | nobody → Scott Kitterman (kitterman) |
milestone: | none → 1.1.7 |
Changed in dkimpy: | |
status: | Fix Committed → Fix Released |