From dc2b2e2ba161c120fed4ab06d61d4b2c9d782869 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Fri, 6 Apr 2012 16:31:14 -0600 Subject: * 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. --- src/mailman/testing/helpers.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mailman/testing/helpers.py') 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() -- cgit v1.2.3-70-g09d2