summaryrefslogtreecommitdiff
path: root/src/mailman/rules
Commit message (Collapse)AuthorAgeFilesLines
* Convert to click for CLI optionsBarry Warsaw2017-07-221-1/+1
|
* Added a rule to discard messages with no valid sender address.Mark Sapiro2017-06-303-0/+99
|
* Bump copyright years.Barry Warsaw2017-01-0421-21/+21
|
* Make code style review pass.Barry Warsaw2017-01-042-72/+87
|
* Made some argument names more descriptive and consistent.Mark Sapiro2017-01-021-35/+60
| | | | Improved the CNAME tests to provide testable results.
* Some configs moved to [dmarc] section.Mark Sapiro2017-01-011-1/+1
|
* Pragma no cover a line that coverage can't reach.Barry Warsaw2017-01-021-1/+7
|
* Merge branch 'mr215' into mr215-reviewBarry Warsaw2017-01-012-16/+174
|\
| * Test coverage improvements.Mark Sapiro2017-01-012-16/+177
| | | | | | | | Replaced unreachable statement with assertion.
| * Replaced urllib.request.urlopen() with mailman.utilities.protocols.get().Mark Sapiro2017-01-012-10/+10
| |
* | Add some coverage.Barry Warsaw2017-01-013-6/+19
| | | | | | | | | | | | * parse_suffix_list() can take an optional filename for testing purposes. * Fix a typo. * Add a test.
* | Implement caching suffix list with in-tree fallback.Barry Warsaw2017-01-014-140/+12156
|/ | | | | | | | Also: * Change doctest cleanups to be an ExitStack. * Added [dmarc]cache_lifetime setting. * Cleanup pass through dmarc-mitigation.rst. * Be sure the cached org domain file is cleaned up when the world is reset.
* Moved test data from rules/data to rules/tests/data.Mark Sapiro2016-12-313-7/+3
| | | | Get path using pkg_resources.resource_filename.
* Merge branch 'mr215-review' of gitlab.com:warsaw/mailman into dmarcMark Sapiro2016-12-311-1/+1
|\
| * Fix some fallout from the previous commit.Barry Warsaw2016-12-311-1/+1
| |
* | Fixed location of 'with' in a test.Mark Sapiro2016-12-312-15/+16
| | | | | | | | Removed unneeded 'as' clauses.
* | Simplified the org domain mock patch and tweaked a test.Mark Sapiro2016-12-311-17/+11
|/
* Move the dmarc configuration options to their own section.Barry Warsaw2016-12-311-23/+23
|
* Small style fixes.Barry Warsaw2016-12-312-82/+104
| | | | | | | * Split the email using .rpartition(). * Use a sentinel singleton for a marker instead of a string. * Move some code out of a try clause and eliminate an else clause for coverage. * Boost coverage by mocking a DNSException.
* Added test data for organizational domains and a mock to use it.Mark Sapiro2016-12-305-19/+80
| | | | Made a few test coverage tweaks.
* Boost coverage.Barry Warsaw2016-12-302-6/+18
|
* Improve coverage for rules/dmarc.py.Barry Warsaw2016-12-301-11/+20
|
* Minor tweaks and coverage:Barry Warsaw2016-12-302-1/+16
| | | | | | | * Format and wrap a comment. * Add a test for having two From: headers. * use <alpha@example.com> as standard Message-ID * Cover URLError case.
* Removed unreachable line from rules/dmarc.py.Mark Sapiro2016-12-302-13/+39
| | | | Added tests to improve coverage.
* Simplified the various list settings and remamed several things.Mark Sapiro2016-12-263-40/+27
|
* Modifications based on feedback from Barry.Mark Sapiro2016-12-161-3/+3
| | | | | | Also, the change to the value column of pendedkeyvalue from SAUnicode to SAUnicodeLarge is removed as it is a separate MR now. This will cause mysql CI to fail until that MR lands.
* Replaced mailman.public with public.public.Mark Sapiro2016-12-092-2/+2
| | | | | Simplified Munge From replacement and added a test for rfc2047 encoded display name.
* Merged from master.Mark Sapiro2016-12-0916-16/+112
|\
| * Use `atpublic` for @public instead of internal copy.Barry Warsaw2016-11-2914-14/+14
| |
| * Starting to clean up the branch.Barry Warsaw2016-11-284-12/+8
| |
| * Fix Flake8 errorsAurélien Bompard2016-11-282-15/+2
| |
| * Fix a crash with the suspicious rule and Header instancesAurélien Bompard2016-11-282-1/+55
| |
| * Fix a crash with the no_subject rule and Header instancesAurélien Bompard2016-11-282-1/+60
| |
* | Added mocking of DNS _dmarc lookups and modified test accordingly.Mark Sapiro2016-11-112-22/+115
| |
* | msgdata['moderation_reasons'] is a list.Mark Sapiro2016-11-051-1/+1
| |
* | Refactored the dmarc rule reject and discard actions. The prior codeMark Sapiro2016-11-042-118/+28
| | | | | | | | did the reject and discard but didn't terminate the chain.
* | Fixed a minor issue in handlers/dmarc.py revealed in testing.Mark Sapiro2016-11-031-5/+20
| | | | | | | | | | Added tests. Tweaked some docs.
* | Fixed replacement $listowner. -> ${listowner}.Mark Sapiro2016-11-012-2/+3
| |
* | DMARC mitigations, part 1a.Mark Sapiro2016-10-313-0/+480
|/
* Prevent posting from banned addressesAurélien Bompard2016-10-273-0/+162
| | | | Fixes #283
* Reorganize the documentation for better accesibilityAbhilash Raj2016-08-211-0/+5
|
* Rebase mailman/mailman!180 and cleanup # noqaBarry Warsaw2016-07-281-1/+1
|
* Refactor and simplify.Barry Warsaw2016-05-031-66/+53
|
* Minor cleanups, rewording, style.Barry Warsaw2016-05-032-49/+76
|
* Change handling of rules for banned addresses.Aditya2016-05-032-41/+54
| | | | | | | If any of the senders are banned, both the member moderation and nonmember moderation rules return False unconditionally. Add test for the above.
* Add testsAditya2016-05-031-1/+77
|
* Ensure that postings from alternative emails aren't heldAditya2016-05-031-6/+38
| | | | | Check if the posting address is linked to a user who is subscribed to the list. If yes, the post is not held for moderation.
* Use contextlib.suppress() where appropriate.Barry Warsaw2016-04-301-3/+2
|
* Don't use `flake8: noqa`.Barry Warsaw2016-04-011-1/+1
| | | | | | | 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.
* Allow fall backs for moderation actions.Barry Warsaw2016-04-013-29/+48
| | | | | | | | | The `moderation_action` for members and nonmember can now be ``None`` which signals falling back to the appropriate list default action, e.g. `default_member_action` and `default_nonmember_action`. Given by Aurélien Bompard. Closes #189