summaryrefslogtreecommitdiff
path: root/src/mailman/rules/tests/test_approved.py
Commit message (Collapse)AuthorAgeFilesLines
* Bump copyright years.Barry Warsaw2017-01-041-1/+1
|
* First massive round of cleanups.Barry Warsaw2016-03-231-14/+0
| | | | | | | | * Get rid of explicit __all__ settings and use the @public decorator. * Get rid of ^L's * Use expected_count argument for get_queue_messages() * Various code modernizations. * Other minor changes to make flake8 happy.
* Protect the approved rule against unknown charsetsAurélien Bompard2016-03-101-5/+24
| | | | Fixes #203
* Happy New Year.Barry Warsaw2016-01-021-1/+1
|
* Fix the approved rule when there is no list passwordAurélien Bompard2015-11-211-0/+6
|
* Bump copyright years.Barry Warsaw2015-01-041-1/+1
|
* Remove huge amounts of now unnecessary file boilerplate.Barry Warsaw2014-12-221-5/+1
|
* Trunk merge.Barry Warsaw2014-12-221-0/+33
|\
| * * Fixed messages without a `text/plain` part crashing the `Approved` rule.Barry Warsaw2014-12-031-0/+32
| |\ | | | | | | | | | Given by Aurélien Bompard. (LP: #1158721)
| | * Emails without a text/plain part crash the Approved ruleAurélien Bompard2014-11-301-0/+31
| |/ | | | | | | Fixes: bug #1158721
* / Fix the approved rule. Don't decode the payload so that we get a unicode toBarry Warsaw2014-12-081-5/+5
|/ | | | | | | | search against. This may not be in the long-term best interest because it ignores Content-Transfer-Encoding, however with decode=True it always returns binary data. We may have to decode and then re.search() with a bytes pattern. passlib always returns a unicode password in Python 3, so adjust for that.
* Bump copyright years.Barry Warsaw2014-01-011-1/+1
|
* Bump copyright years.Barry Warsaw2013-01-011-1/+1
|
* ConfigurationBarry Warsaw2012-11-041-2/+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-4/+85
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Replace flufl.password with passlib, albeit with a wrapper.Barry Warsaw2012-06-271-9/+4
|
* * A mailing list's *moderator password* is no longer stored in the clear; itBarry Warsaw2012-04-041-2/+356
| | | | | | | | | | | is hashed with the currently selected scheme. Also: - Simplify and rewrite the approved.rst doctest. Now just document the good path, and only describe its functionality using the Approved: header, which is the recommended header. - Greatly expand the unittests for the approved rule.
* * Fixed a UnicodeError with non-ascii message bodies in the `approved` rule,Barry Warsaw2012-04-041-16/+5
| | | | | | given by Mark Sapiro. (LP: #949924) (with some minor stylistic fixes by Barry)
* * Added a unit test for rules/approved.pyMark Sapiro2012-03-181-0/+74
* Renamed rules/docs/approve.py to approved.py for consistency.