From 6a33fc4bd0a46403d64174e07aaac15db12ea8ad Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Fri, 21 May 2021 16:53:17 -0400 Subject: Tweak lore.kernel.org match Be a bit more discerning about the header matches for lore.kernel.org. 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 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) -- cgit v1.2.3