You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2020/09/03 15:31:47 UTC

[incubator-ponymail-foal] branch master updated: Bug: dkim generator does not extract any headers

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git


The following commit(s) were added to refs/heads/master by this push:
     new c57837f  Bug: dkim generator does not extract any headers
c57837f is described below

commit c57837f575db4b7407046e45f590e3a3381b9528
Author: Sebb <se...@apache.org>
AuthorDate: Thu Sep 3 16:31:30 2020 +0100

    Bug: dkim generator does not extract any headers
    
    This fixes #3
---
 tools/plugins/generators.py | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/tools/plugins/generators.py b/tools/plugins/generators.py
index e626a47..2d68118 100644
--- a/tools/plugins/generators.py
+++ b/tools/plugins/generators.py
@@ -31,18 +31,20 @@ config: typing.Optional[dict] = None
 
 # Headers from RFC 4871, the precursor to RFC 6376
 rfc4871_subset = {
-    "from", "sender", "reply-to", "subject", "date", "message-id",
-    "to", "cc", "mime-version", "content-type",
-    "content-transfer-encoding", "content-id", "content-description",
-    "resent-date", "resent-from", "resent-sender", "resent-to",
-    "resent-cc", "resent-message-id", "in-reply-to", "references",
-    "list-id", "list-help", "list-unsubscribe", "list-subscribe",
-    "list-post", "list-owner", "list-archive", "dkim-signature"
+    b"from", b"sender", b"reply-to", b"subject", b"date",
+    b"message-id", b"to", b"cc", b"mime-version", b"content-type",
+    b"content-transfer-encoding", b"content-id",
+    b"content-description", b"resent-date", b"resent-from",
+    b"resent-sender", b"resent-to", b"resent-cc",
+    b"resent-message-id", b"in-reply-to", b"references", b"list-id",
+    b"list-help", b"list-unsubscribe", b"list-subscribe",
+    b"list-post", b"list-owner", b"list-archive", b"dkim-signature"
 }
 
 # Authenticity headers from RFC 8617
 rfc4871_and_rfc8617_subset = rfc4871_subset | {
-    "arc-authentication-results", "arc-message-signature", "arc-seal"
+    b"arc-authentication-results", b"arc-message-signature",
+    b"arc-seal"
 }