summaryrefslogtreecommitdiff
path: root/src/mailman/chains/tests/test_hold.py
Commit message (Collapse)AuthorAgeFilesLines
* Bump copyright years.Barry Warsaw2017-01-041-1/+1
|
* Fix tests for test-owner instead of moderator's address.Mark Sapiro2016-12-041-2/+2
|
* Minor cleanup and test added.Barry Warsaw2016-11-251-0/+18
|
* Transmit the moderation reason to hold_message()Aurélien Bompard2016-11-251-0/+8
| | | | | | | | 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.
* Closes: #68Barry Warsaw2016-11-131-2/+2
| | | | | 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-311-3/+8
|
* Clean up the chains subdirectory.Barry Warsaw2016-03-241-18/+6
|
* 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.
* Happy New Year.Barry Warsaw2016-01-021-1/+1
|
* Closes #144Barry Warsaw2015-11-081-0/+30
| | | | | * Fix ``UnicodeEncodeError`` in the hold chain when sending the authorization email to the mailing list moderators. (Closes: #144)
* Fix import order.Barry Warsaw2015-09-231-1/+1
|
* Fix the logging of the moderation reasonsAurélien Bompard2015-09-231-1/+5
|
* Implement reasons for why a message is being held for moderator approval.Barry Warsaw2015-05-111-1/+46
| | | | | | | Given by Aurélien Bompard, tweaked by Barry Warsaw. Remove the inaccurate confirmation url and admindb urls from the substitution dictionaries for postauth.txt and posthold.txt, and the templates.
* Bump copyright years.Barry Warsaw2015-01-041-1/+1
|
* Remove huge amounts of now unnecessary file boilerplate.Barry Warsaw2014-12-221-5/+1
|
* Use print functions consistently through, and update all __future__ imports toBarry Warsaw2014-04-281-1/+2
| | | | | | | | reflect this. Also, mock out sys.stderr on some tests so that their nose2 output is quieter. A few other minor coding style consistencies.
* Bump copyright years.Barry Warsaw2014-01-011-1/+1
|
* Bump copyright years.Barry Warsaw2013-01-011-1/+1
|
* ConfigurationBarry Warsaw2012-11-041-3/+2
| | | | | | | | | | | | | | | ------------- * `[passlib]path` configuration variable renamed to `[passlib]configuration`. * Postfix-specific configurations in the `[mta]` section are moved to a separate file, named by the `[mta]configuration` variable. * In the new `postfix.cfg` file, `postfix_map_cmd` is renamed to `postmap_command`. Also: * More Python 2.7-isms, use assertMultiLineEqual() directly. * Added external_configuration() and load_external() to mailman.config.config * ConfigLayer does a blanket set of [postfix]postmap_command so subtests generally won't have to.
* * `passlib`_ is now used for all password hashing instead of flufl.password.Barry Warsaw2012-07-021-8/+4
| | | | | | | | | | | | | | | | | | | | | | | The default hash is `sha512_crypt`. * Events renamed and moved: * `mailman.chains.accept.AcceptNotification` * `mailman.chains.base.ChainNotification` * `mailman.chains.discard.DiscardNotification` * `mailman.chains.hold.HoldNotification` * `mailman.chains.owner.OwnerNotification` * `mailman.chains.reject.RejectNotification` changed to (respectively): * `mailman.interfaces.chains.AcceptEvent` * `mailman.interfaces.chains.ChainEvent` * `mailman.interfaces.chains.DiscardEvent` * `mailman.interfaces.chains.HoldEvent` * `mailman.interfaces.chains.AcceptOwnerEvent` * `mailman.interfaces.chains.RejectEvent` * A `ConfigurationUpdatedEvent` is triggered when the system-wide global configuration stack is pushed or popped. * With the switch to `passlib`_, `[passwords]password_scheme` has been removed. Instead use `[passwords]path` to specify where to find the `passlib.cfg` file. See the comments in `schema.cfg` for details.
* Consistent use of assertMultiLineEqual().Barry Warsaw2012-03-061-3/+2
|
* copybumpBarry Warsaw2012-01-011-1/+1
|
* Remove extraneous `test_suite()` functions. zope.testrunner willBarry Warsaw2011-10-301-8/+0
| | | | | | | | | automatically do the right thing in most cases. Keep test_suite() in test_documentation.py since these dynamically set up docs tests properly. Refactor test_passwords.py so that base class tests aren't bogusly run. Also, remove test_membership.py which was essentially disabled because it was testing the MM2 membership API.
* * Local timezone in X-Mailman-Approved-At caused test failure. (LP: #832404)Barry Warsaw2011-08-231-1/+5
|
* * Fix AttributeError triggered by i18n call in autorespond_to_sender()Barry Warsaw2011-08-231-0/+101
(LP: #827060)