summaryrefslogtreecommitdiff
path: root/src/mailman/chains/tests/test_headers.py
Commit message (Collapse)AuthorAgeFilesLines
* Refactor Header object test to create the message without cheating.Mark Sapiro2017-05-241-10/+5
|
* Account for msg['subject'] possibly being a Header instance.Mark Sapiro2017-05-241-0/+30
|
* Bump copyright years.Barry Warsaw2017-01-041-1/+1
|
* Fix the Flake8 ignore tagsAurélien Bompard2016-11-211-1/+1
|
* Tweaks.Barry Warsaw2016-10-221-1/+1
|
* Fixes for #280.Mark Sapiro2016-10-221-0/+40
|
* Rebase mailman/mailman!180 and cleanup # noqaBarry Warsaw2016-07-281-6/+6
|
* Fix header match rule suffix inflation.Barry Warsaw2016-05-011-15/+12
| | | | | Given by Aurélien Bompard. Closes #226
* Give predictable names to header match rulesAurélien Bompard2016-05-011-0/+29
| | | | Fixes #226.
* Use flake8-respect-noqa plugin and fix more complaints.Barry Warsaw2016-04-011-1/+1
|
* Don't use `flake8: noqa`.Barry Warsaw2016-04-011-5/+5
| | | | | | | This suppresses all errors in the file. Use `noqa`, although pep8 doesn't honor this for all errors. There may be a plugin which helps.
* Clean up the chains subdirectory.Barry Warsaw2016-03-241-11/+6
|
* Refine some coding style.Barry Warsaw2016-02-291-17/+24
| | | | | Slightly rewrite a test so that the event subscribers are more narrow. Opportunistically remove ^L
* Revert "Rename the HeaderMatch.chain column to action"Aurélien Bompard2016-02-291-5/+4
| | | | This reverts commit 703fc135dfcd496a704562ddc263aa0f4f828de9.
* Action-less header matches default to the site-wide antispam actionAurélien Bompard2016-02-291-2/+48
| | | | | Action.defer can't be used on header match links since the 'any' link that jumped to the configuration default happens before header matches.
* Rename the HeaderMatch.chain column to actionAurélien Bompard2016-02-291-4/+5
| | | | It makes it clearer what values are valid, and allows validation.
* The order of a mailing list's header matches is significantAurélien Bompard2016-02-291-9/+9
| | | | | | | Add a numerical index property to HeaderMatch objects, and change the HeaderMatchSet manager to take the order into account. Items can now be inserted and removed by index.
* Happy New Year.Barry Warsaw2016-01-021-1/+1
|
* Clean up pass through abompard's branch.Barry Warsaw2015-10-201-9/+28
|
* Use and interface for the set of header_matchesAurélien Bompard2015-10-201-14/+13
|
* Implement changes from the reviewAurélien Bompard2015-10-201-15/+13
|
* Make sure site-wide header_matches take precedence over list-specific onesAurélien Bompard2015-10-201-2/+38
|
* Adapt the code and the tests to the new HeaderMatch objectAurélien Bompard2015-10-201-4/+5
|
* Handle header-match rule-specific actionAurélien Bompard2015-10-201-0/+32
|
* Bump copyright years.Barry Warsaw2015-01-041-1/+1
|
* Remove huge amounts of now unnecessary file boilerplate.Barry Warsaw2014-12-221-3/+0
|
* Bump copyright years.Barry Warsaw2014-01-011-1/+1
|
* Bump copyright years.Barry Warsaw2013-01-011-1/+1
|
* * Python 2.7 is not required. Python 2.6 is no longer officially supported.Barry Warsaw2012-10-311-4/+2
| | | | | The code base is now also `python2.7 -3` clean, although there are still some warnings in 3rd party dependencies. LP: #1073506
* * Header check specifications in the `mailman.cfg` file have changed quiteBarry Warsaw2012-04-061-0/+126
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.