summaryrefslogtreecommitdiff
path: root/src/mailman/chains
Commit message (Collapse)AuthorAgeFilesLines
* Rename metadata key for clarityBarry Warsaw2017-08-048-48/+164
|
* Ensure all holds/rejects have a reason.Mark Sapiro2017-07-267-9/+94
|
* Added a rule to discard messages with no valid sender address.Mark Sapiro2017-06-302-0/+7
|
* Provide a better way to avoid instantiating some componentsBarry Warsaw2017-06-171-0/+3
|
* 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-242-0/+33
|
* Bump copyright years.Barry Warsaw2017-01-0415-15/+15
|
* Merge gitlab.com:mailman/mailman into dmarcMark Sapiro2016-12-302-3/+3
|\
| * Fix tests for test-owner instead of moderator's address.Mark Sapiro2016-12-041-2/+2
| |
| * Merge gitlab.com:mailman/mailman into to_moderatorsMark Sapiro2016-12-049-9/+9
| |\
| * | Remove to_moderatorsMark Sapiro2016-12-041-1/+1
| | |
* | | Simplified the various list settings and remamed several things.Mark Sapiro2016-12-262-6/+6
| | |
* | | Merged from master.Mark Sapiro2016-12-099-9/+9
|\ \ \ | | |/ | |/|
| * | Use `atpublic` for @public instead of internal copy.Barry Warsaw2016-11-299-9/+9
| |/
* | Merge branch 'dmarc' of gitlab.com:msapiro/mailman into dmarcMark Sapiro2016-11-262-0/+9
|\ \ | |/ |/|
| * Refactored the dmarc rule reject and discard actions. The prior codeMark Sapiro2016-11-041-2/+4
| | | | | | | | did the reject and discard but didn't terminate the chain.
| * Fixed some doctests for the addition of the dmarc-moderation rule.Mark Sapiro2016-11-011-0/+5
| |
| * DMARC mitigations, part 1a.Mark Sapiro2016-10-311-0/+2
| |
* | Minor cleanup and test added.Barry Warsaw2016-11-252-1/+19
| |
* | Transmit the moderation reason to hold_message()Aurélien Bompard2016-11-252-1/+10
| | | | | | | | | | | | | | | | The `reason` attribute of `hold_message()` was always None. Serialize the moderation reasons list and pass it to the function. This allows the `reason` attribute in REST to actually contain the moderation reason. It was always blank before.
* | Fix the Flake8 ignore tagsAurélien Bompard2016-11-213-3/+3
| |
* | Closes: #68Barry Warsaw2016-11-132-3/+3
| | | | | | | | | | Messages sent to the list's moderators now include the actual recipient addresses. Given by Tom Briles.
* | Issue 68: send messages to list moderators when tomoderators=TrueTom Briles2016-10-312-4/+9
|/
* Prevent posting from banned addressesAurélien Bompard2016-10-272-0/+7
| | | | Fixes #283
* Tweaks.Barry Warsaw2016-10-222-1/+2
|
* Fixes for #280.Mark Sapiro2016-10-222-1/+44
|
* Reorganize the documentation for better accesibilityAbhilash Raj2016-08-211-0/+8
|
* Rebase mailman/mailman!180 and cleanup # noqaBarry Warsaw2016-07-284-11/+11
|
* flake8-respect-noqa is no longer required with flake8>3.0Abhilash Raj2016-07-281-1/+1
| | | | | This also fixes a small QA error that was ignore by the flake8-respect-noqa for some reason.
* New template system. Closes #249Barry Warsaw2016-07-161-21/+27
| | | | | The new template system is introduced for API 3.1. See ``src/mailman/rest/docs/templates.rst`` for details.
* Fix header match rule suffix inflation.Barry Warsaw2016-05-012-41/+33
| | | | | Given by Aurélien Bompard. Closes #226
* Give predictable names to header match rulesAurélien Bompard2016-05-012-8/+57
| | | | 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-015-13/+13
| | | | | | | 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-011-17/+18
| | | | | | | | | 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
* Members and nonmembers moderation action fallbackAurélien Bompard2016-03-311-8/+21
| | | | | | | | Members and nonmember's moderation action should be None by default, and in that case the moderation rule should fallback to the mailing list's default action. Fixes: #189
* Clean up the core directory.Barry Warsaw2016-03-241-1/+1
| | | | | | | mailman/core/errors.py is gone now. We had a duplicate base exception which now always comes from mailman/interfaces/errors.py. Obsolete/unused exceptions are remove. The other exceptions are moved to better locations.
* Clean up the chains subdirectory.Barry Warsaw2016-03-2415-131/+50
|
* Remove an unused import.Barry Warsaw2016-03-221-1/+0
|
* Fix cross-posting held on more than one list.Barry Warsaw2016-03-081-0/+35
| | | | | | | | | | | Closes #176 Also: * IMessageStore no longer raises a ValueError if the Message-ID already exists in the store; it just returns None. * The internal handle_message() function no longer takes a `preserve` argument, since messages are never removed from the IMessageStore.
* Refine some coding style.Barry Warsaw2016-02-292-21/+27
| | | | | 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-292-10/+6
| | | | This reverts commit 703fc135dfcd496a704562ddc263aa0f4f828de9.
* Action-less header matches default to the site-wide antispam actionAurélien Bompard2016-02-292-3/+50
| | | | | 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-292-5/+10
| | | | 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.
* Super duper.Barry Warsaw2016-01-261-1/+1
| | | | | * Python 3-ify super() calls. * Remove a bunch of obsolete exception classes.
* Use the more convenient API.Barry Warsaw2016-01-251-3/+2
|
* Full coverage of the accept chain.Barry Warsaw2016-01-252-2/+78
| | | | Fix some comments.
* Make creating Link objects a more convenient.Barry Warsaw2016-01-255-32/+21
| | | | | | Link.__init__() can now take an IRule or the string naming a rule, which will be looked up in config.rules. Similarly, it can take an IChain or the name of a chain.
* Several optimizations:Barry Warsaw2016-01-112-3/+18
| | | | | | | | | | | | * Use `yield from` wherever appropriate. * Use SA's .one_or_none() where appropriate. - Fix a bug in MailingList.pass_extensions. - Use ValueError in other places for consistency. - Remove unreached/nonsense code. - Simplify the SubscriptionService.find_member() and .find_members() implementations. - Boost coverage.