diff options
-rw-r--r-- | b4/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/b4/__init__.py b/b4/__init__.py index eed101a..186a1e3 100644 --- a/b4/__init__.py +++ b/b4/__init__.py @@ -1038,7 +1038,10 @@ class LoreMessage: # until we come to a passing one dkhdrs = list() for header in list(self.msg._headers): # noqa - if header[0].lower() == 'dkim-signature': + # Also remove any List- headers set by lore.kernel.org + 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) self.msg._headers.remove(header) # noqa dkhdrs.reverse() |