diff options
| author | Mark Sapiro | 2016-10-22 18:18:16 -0700 |
|---|---|---|
| committer | Mark Sapiro | 2016-10-22 18:18:16 -0700 |
| commit | 3a198afcaadab0632aa4762e669438b950218275 (patch) | |
| tree | e97e982d5c2406b0eec412c6675361728379833e /src/mailman/chains/headers.py | |
| parent | 2e1bc9aa297d108315fe588f2c1831d38a8963e5 (diff) | |
| parent | 4cd3c3f309bb91d46a7ce55a32216db2321804c1 (diff) | |
| download | mailman-3a198afcaadab0632aa4762e669438b950218275.tar.gz mailman-3a198afcaadab0632aa4762e669438b950218275.tar.zst mailman-3a198afcaadab0632aa4762e669438b950218275.zip | |
Diffstat (limited to 'src/mailman/chains/headers.py')
| -rw-r--r-- | src/mailman/chains/headers.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mailman/chains/headers.py b/src/mailman/chains/headers.py index 70f1da587..5698740d3 100644 --- a/src/mailman/chains/headers.py +++ b/src/mailman/chains/headers.py @@ -96,7 +96,11 @@ class HeaderMatchRule: def check(self, mlist, msg, msgdata): """See `IRule`.""" - for value in msg.get_all(self.header, []): + # Collect all the headers in all subparts. + headers = [] + for p in msg.walk(): + headers.extend(p.get_all(self.header, [])) + for value in headers: if re.search(self.pattern, value, re.IGNORECASE): return True return False |
