From 4477398b0f0f9f46869407af824ef1e6acda58ca Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Wed, 12 May 2021 15:52:59 -0400 Subject: Fix DKIM check on headers that don't lowercase h The h= field headers may not be lowercased, so make sure we handle that when looking if the date header is signed. Signed-off-by: Konstantin Ryabitsev --- b4/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b4/__init__.py b/b4/__init__.py index 5a8466b..1c6d89b 100644 --- a/b4/__init__.py +++ b/b4/__init__.py @@ -988,7 +988,7 @@ class LoreMessage: else: # See if date is included in the h: field sh = hdata.get('h') - if 'date' in sh.split(':'): + if 'date' in sh.lower().split(':'): signtime = self.date self.msg._headers.append((hn, hval)) # noqa -- cgit v1.2.3