summaryrefslogtreecommitdiff
path: root/src/mailman/rules/dmarc.py
Commit message (Collapse)AuthorAgeFilesLines
* Rename metadata key for clarityBarry Warsaw2017-08-041-5/+5
|
* Ensure all holds/rejects have a reason.Mark Sapiro2017-07-261-9/+15
|
* Bump copyright years.Barry Warsaw2017-01-041-1/+1
|
* Make code style review pass.Barry Warsaw2017-01-041-53/+68
|
* Pragma no cover a line that coverage can't reach.Barry Warsaw2017-01-021-1/+7
|
* Merge branch 'mr215' into mr215-reviewBarry Warsaw2017-01-011-4/+2
|\
| * Test coverage improvements.Mark Sapiro2017-01-011-4/+2
| | | | | | | | Replaced unreachable statement with assertion.
| * Replaced urllib.request.urlopen() with mailman.utilities.protocols.get().Mark Sapiro2017-01-011-4/+4
| |
* | Add some coverage.Barry Warsaw2017-01-011-5/+6
| | | | | | | | | | | | * 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-011-33/+87
|/ | | | | | | | 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.
* Fix some fallout from the previous commit.Barry Warsaw2016-12-311-1/+1
|
* Move the dmarc configuration options to their own section.Barry Warsaw2016-12-311-23/+23
|
* Small style fixes.Barry Warsaw2016-12-311-80/+79
| | | | | | | * 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-301-2/+5
| | | | Made a few test coverage tweaks.
* Boost coverage.Barry Warsaw2016-12-301-5/+2
|
* Minor tweaks and coverage:Barry Warsaw2016-12-301-1/+1
| | | | | | | * 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-301-11/+8
| | | | Added tests to improve coverage.
* Simplified the various list settings and remamed several things.Mark Sapiro2016-12-261-25/+11
|
* 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-091-1/+1
| | | | | Simplified Munge From replacement and added a test for rfc2047 encoded display name.
* 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-041-11/+12
| | | | did the reject and discard but didn't terminate the chain.
* Fixed replacement $listowner. -> ${listowner}.Mark Sapiro2016-11-011-1/+1
|
* DMARC mitigations, part 1a.Mark Sapiro2016-10-311-0/+269