diff options
| author | Barry Warsaw | 2012-04-06 16:40:09 -0600 |
|---|---|---|
| committer | Barry Warsaw | 2012-04-06 16:40:09 -0600 |
| commit | ef32581618bb0c96b91e2d55a9f4b166108421ce (patch) | |
| tree | 8a6a91c4a19084f03df86f003930d0e678bfda2f /src/mailman/rules/any.py | |
| parent | 180d4968c277b533507db04bb9d363c6a65a2af5 (diff) | |
| parent | de0be5e44899511a3c357b7bcaf70c425e5a0771 (diff) | |
| download | mailman-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/rules/any.py')
| -rw-r--r-- | src/mailman/rules/any.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mailman/rules/any.py b/src/mailman/rules/any.py index fa42b64cc..b0d147bec 100644 --- a/src/mailman/rules/any.py +++ b/src/mailman/rules/any.py @@ -42,4 +42,4 @@ class Any: def check(self, mlist, msg, msgdata): """See `IRule`.""" - return len(msgdata.get('rules', [])) > 0 + return len(msgdata.get('rule_hits', [])) > 0 |
