summaryrefslogtreecommitdiff
path: root/src/mailman/chains/headers.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/chains/headers.py')
-rw-r--r--src/mailman/chains/headers.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mailman/chains/headers.py b/src/mailman/chains/headers.py
index d3db30b23..23ad79fdf 100644
--- a/src/mailman/chains/headers.py
+++ b/src/mailman/chains/headers.py
@@ -150,9 +150,6 @@ class HeaderMatchChain(Chain):
yield Link('any', LinkAction.jump, config.antispam.jump_chain)
# Then return all the list-specific header matches.
for entry in mlist.header_matches:
- if entry.action is None:
- # Default to the default antispam chain.
- chain = config.antispam.jump_chain
- else:
- chain = entry.action.name
+ # Jump to the default antispam chain if the entry chain is None.
+ chain = entry.chain or config.antispam.jump_chain
yield make_link(entry.header, entry.pattern, chain)