diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2021-05-12 15:52:59 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2021-05-12 15:52:59 -0400 |
commit | 4477398b0f0f9f46869407af824ef1e6acda58ca (patch) | |
tree | f329e0b315b55ae0b8b8ef2e48fed497c7f4b59d | |
parent | afe86cd0a26f188f7039c2ae996c2d0c777ee93f (diff) | |
download | b4-4477398b0f0f9f46869407af824ef1e6acda58ca.tar.gz |
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 <konstantin@linuxfoundation.org>
-rw-r--r-- | b4/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |