summaryrefslogtreecommitdiff
path: root/src/mailman/testing/helpers.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-04-06 16:40:09 -0600
committerBarry Warsaw2012-04-06 16:40:09 -0600
commitef32581618bb0c96b91e2d55a9f4b166108421ce (patch)
tree8a6a91c4a19084f03df86f003930d0e678bfda2f /src/mailman/testing/helpers.py
parent180d4968c277b533507db04bb9d363c6a65a2af5 (diff)
parentde0be5e44899511a3c357b7bcaf70c425e5a0771 (diff)
downloadmailman-ef32581618bb0c96b91e2d55a9f4b166108421ce.tar.gz
mailman-ef32581618bb0c96b91e2d55a9f4b166108421ce.tar.zst
mailman-ef32581618bb0c96b91e2d55a9f4b166108421ce.zip
* Header check specifications in the `mailman.cfg` file have changed quite
bit. The previous `[spam.header.foo]` sections have been removed. Instead, there's a new `[antispam]` section that contains a `header_checks` variable. This variable takes multiple lines of `Header: regexp` values, one per line. There is also a new `jump_chain` variable which names the chain to jump to should any of the header checks (including the list-specific, and programmatically added ones) match. * Fixed a typo when returning the configuration file's header match checks. (LP: #953497) Also: - Remove an unused method. - Improve test coverage for mailman/app/bounces.py - 100% test coverage for mailman/chains/headers.py - Various other minor code cleanup. - Fixed the 'any' rule, which was checking a bogus metadata dictionary key.
Diffstat (limited to 'src/mailman/testing/helpers.py')
-rw-r--r--src/mailman/testing/helpers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mailman/testing/helpers.py b/src/mailman/testing/helpers.py
index 8295ef3a8..3648a6710 100644
--- a/src/mailman/testing/helpers.py
+++ b/src/mailman/testing/helpers.py
@@ -442,6 +442,8 @@ def reset_the_world():
config.db.commit()
# Reset the global style manager.
getUtility(IStyleManager).populate()
+ # Remove all dynamic header-match rules.
+ config.chains['header-match'].flush()