summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2021-05-21 16:53:17 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2021-05-21 16:53:17 -0400
commit6a33fc4bd0a46403d64174e07aaac15db12ea8ad (patch)
tree91ed92f55034e79fe6bf5d4949ef70d3faa39566
parent17a9cb9e6184d9a285bc1ca8349d521d47bc655d (diff)
downloadb4-6a33fc4bd0a46403d64174e07aaac15db12ea8ad.tar.gz
Tweak lore.kernel.org match
Be a bit more discerning about the header matches for lore.kernel.org. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r--b4/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index 186a1e3..f13a599 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -1039,7 +1039,7 @@ class LoreMessage:
dkhdrs = list()
for header in list(self.msg._headers): # noqa
# Also remove any List- headers set by lore.kernel.org
- if header[0].lower().startswith('list-') and header[1].find('lore.kernel.org') > 0:
+ if header[0].lower().startswith('list-') and header[1].find('//lore.kernel.org/') > 0:
self.msg._headers.remove(header) # noqa
elif header[0].lower() == 'dkim-signature':
dkhdrs.append(header)