summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* initial refactoringBarry Warsaw2012-12-251-13/+12
|
* mergeBarry Warsaw2012-12-257-12/+80
|\
| * * Improve the --help text for the `start`, `stop`, `restart`, and `reopen`Barry Warsaw2012-12-233-4/+8
| | | | | | | | subcommands. (LP: #1035033)
| * * Two new events are triggered on membership changes: `SubscriptionEvent`Barry Warsaw2012-12-235-8/+72
| | | | | | | | | | when a new member joins a mailing list, and an `UnsubscriptionEvent` when a member leaves a mailing list. (LP: #1047286)
* | Fix the order of PasswordContext.verify() to match that of passlib.Barry Warsaw2012-12-252-5/+24
|/
* More NEWS.Barry Warsaw2012-12-171-0/+13
|
* Flesh out a few more tests.Barry Warsaw2012-12-171-2/+34
|
* * Expose a REST API for membership change (subscriptions and unsubscriptions)Barry Warsaw2012-12-1713-900/+1090
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | moderation. (LP: #1090753) * Fixed `send_goodbye_message()`. (LP: #1091321) Also: * Rewrite and refactor request.rst into better documentation, moving non-good-path tests into unittests. This doctest now only describes the IRequests API, while the bulk of the moderation documentation now lives in moderator.rst. * When a subscription request is pended, the `delivery_mode` key is now just the enum item's name, instead of the str() of the enum (which would include the class name). We know it's always going to be a DeliveryMode enum. * Refactor out the welcome_message calculation from the welcome_message_uri, since the same algorithm can apply to goodbye_message_uri. * When a _Request is retrieved, include the RequestType enum name in the data dictionary (if there is one) under the `_request_type` key. Some APIs find this useful, but it's not directly returned otherwise. * For held messages via the REST API, flatten the `data` key into the top-level JSON representation, exposing some of the _mod_* keys under their non-_mod_* equivalent. Ignore _mod_* keys we don't care about. This is an API change.
| * * Fill out the documentation on moderation notifications.Barry Warsaw2012-12-173-106/+195
| | | | | | | | * Fix LP: 1091321; typo in send_goodbye_message().
| * Fix cross-references.Barry Warsaw2012-12-172-3/+3
| |
| * * Simplify moderator.rst and requests.rst so they serve a better purpose asBarry Warsaw2012-12-177-824/+603
| | | | | | | | | | | | | | | | | | | | documentation. Move non-documentation tests into a separate unittest file. * Separate out the doctests for IRequest from the doctests for app/moderator.py and place the latter in a separate file. * Fix typo in app/membership.py (s/send_goodbye_msg/send_goodbye_message), but LP: #1091321 tracks more needed fixes in this area.
| * Complete the exposure of subscription request moderation via REST (still needsBarry Warsaw2012-12-163-75/+253
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a clean up pass and thorough unit testing). * Insert the RequestType enum name into the data dictionary returned by get_request(). Otherwise, there's really no good way to get that information, which several APIs need. * Flatten the data dictionary returned by held message JSON representations, into the JSON dictionary itself. Do a filtering and rename pass on the keys. - rename 'id' to 'request_id' - remove the redundant 'key' * Refactor some common stuff into _ModerationBase, although more refactoring is coming.
| * Expose held subscription/unsubscription requests via the API.Barry Warsaw2012-12-155-12/+156
| | | | | | | | | | | | * hold_subscription(): Don't str(mode) to get a string representation, just mode.name since we know it is a DeliveryMode. This means we don't need to split the value later in handle_subscription().
* | * Allow the getting/setting of IMailingList.subject_prefix via the REST APIBarry Warsaw2012-12-173-0/+11
|\ \ | |/ |/| | | (given by Terri Oda). (LP: #1062893)
| * Adding subject_prefix to the api (and updating the docs to include it)Terri Oda2012-12-152-0/+9
|/
* * Deleting a user through the REST API also deletes all the user's linkedBarry Warsaw2012-11-055-3/+103
| | | | | | addresses and memberships. (LP: #1074374) Also: Clean up pyflakes warning by removing an obsolete __all__ entry.
* Merge Aurélien Bompard's branch to factor our archiver-specific configurationsBarry Warsaw2012-11-049-37/+104
|\ | | | | | | | | into their own configuration files. Reworked by Barry to use the new external configuration file support, and to make test suite succeed.
| * Allow archivers to use their own configuration fileAurélien Bompard2012-09-176-31/+111
| | | | | | | | | | | | | | | | | | | | | | | | There's a new "configure" entry in the archiver's section, which can point to an ini-compatible configuration file (ConfigParser is used) for additional archiver-specific configuration. The existing archiver config have been split off schema.cfg to their own configuration files. These shipped files can be overridden by a conf file of the same name in $ext_dir. The ini-file loading method should be rather generic, in case we want the same feature somewhere else.
* | ConfigurationBarry Warsaw2012-11-0422-69/+193
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ------------- * `[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.
* | A couple of minor code cleanups.Barry Warsaw2012-10-311-3/+2
| |
* | Better NEWS entryBarry Warsaw2012-10-311-1/+2
|\ \
| * | Better NEWS entryBarry Warsaw2012-10-311-1/+2
| | |
* | | merge trunkBarry Warsaw2012-10-312-3/+9
|\ \ \ | |/ / |/| |
| * | * `bin/mailman start` was passing the wrong relative path to its runnerBarry Warsaw2012-10-242-3/+9
| | | | | | | | | | | | subprocesses when -C was given. LP: #982551
* | | * Python 2.7 is not required. Python 2.6 is no longer officially supported.Barry Warsaw2012-10-3132-381/+156
|/ / | | | | | | | | The code base is now also `python2.7 -3` clean, although there are still some warnings in 3rd party dependencies. LP: #1073506
* | DatabaseBarry Warsaw2012-10-1613-210/+389
| | | | | | | | | | | | | | | | | | | | | | | | -------- * The `ban` table now uses list-ids to cross-reference the mailing list, since these cannot change even if the mailing list is moved or renamed. Interfaces ---------- * The `IBanManager` is no longer a global utility. Instead, you adapt an `IMailingList` to an `IBanManager` to manage the bans for a specific mailing list. To manage the global bans, adapt ``None``.
* | * Added support for Postfix `relay_domains` setting for better virtual domainBarry Warsaw2012-10-127-212/+223
|\ \ | | | | | | | | | | | | | | | | | | | | | support. Contributed by Jimmy Bergman. * `bin/mailman aliases` loses the `--output`, `--format`, and `--simple` arguments, and adds a `--directory` argument. This is necessary to support the Postfix `relay_domains` support.
| * | Add another paragraph to MTA.rst regarding virtual domainsJimmy Bergman2012-09-241-0/+5
| | |
| * | Write a domain map that postfix can use as relay_domains automatically on ↵Jimmy Bergman2012-09-242-4/+73
|/ / | | | | | | | | | | list creation/removal. Improve postfix documentation in MTA.rst by referencing the official docs.
* | * You can now verify and unverify an email address through the REST API.Barry Warsaw2012-09-224-3/+159
| | | | | | | | | | | | | | POST to .../addresses/<email>/verify and .../addresses/<email>/unverify respectively. The POST data is ignored. It is not an error to verify or unverify an address more than once, but verifying an already verified address does not change its `.verified_on` date. (LP: #1054730)
* | * You can now PUT and PATCH on user resources to change the user's displayBarry Warsaw2012-09-229-110/+320
| | | | | | | | | | | | | | | | | | | | | | | | | | | | name or password. For passwords, you pass in the clear text password and Mailman will hash it before storing. Also: * Major refactoring of validators for PUT and PATCH. Pull the common logic out of configuration.py and put it in a PatchValidator class in helpers.py. Also move GetterSetter to helpers.py * Add new exception classes RESTError, UnknownPATCHRequestError, ReadOnlyPATCHRequestError. These are used in the PatchValidator. * Added Validator.update() which works nicely for PATCH and PUT.
* | * Add list_id to JSON representation for a mailing list (given by JimmyBarry Warsaw2012-09-224-17/+69
|\ \ | |/ |/| | | | | | | | | | | Bergman). * The canonical resource for a mailing list (and thus its self_link) is now the URL with the list-id. To reference a mailing list, the list-id url is preferred, but for backward compatibility, the posting address is still accepted.
| * Add list_id to the REST API list representationJimmy Bergman2012-09-202-0/+4
| |
| * Write a domain map that postfix can use as relay_domains automatically on ↵Jimmy Bergman2012-08-132-7/+64
|/ | | | list creation/removal
* Bump versions and code name for 3.0b3.Barry Warsaw2012-09-082-4/+9
|
* Prep for 3.0b2.Barry Warsaw2012-09-061-1/+1
|
* * Fixed the RFC 1153 digest footer to be compliant. (LP: #887610)Barry Warsaw2012-09-053-9/+19
|\ | | | | | | Fixed by Mark Sapiro.
| * Pretty printing is not necessary when the output actually matches.Mark Sapiro2012-04-111-3/+2
| |
| * Fixed the RFC 1153 digest footer to be compliant.Mark Sapiro2012-04-113-8/+19
| |
* | Documentation updates for beta 2.Barry Warsaw2012-09-056-27/+32
| |
* | Port the schema migration changes for LP: #1024509 to PostgreSQL.Barry Warsaw2012-09-052-6/+37
| |
* | * Schema migrations (LP: #1024509)Barry Warsaw2012-09-045-11/+76
| | | | | | | | - member.mailing_list -> list_id
* | * The link between members and the mailing lists they are subscribed to, isBarry Warsaw2012-09-0435-244/+366
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | now via the RFC 2369 `list_id` instead of the fqdn listname (i.e. posting address). This is because while the posting address can change if the mailing list is moved to a new server, the list id is fixed. (LP: #1024509) + IListManager.get_by_list_id() added. + IListManager.list_ids added. + IMailingList.list_id added. + Several internal APIs that accepted fqdn list names now require list ids, e.g. ISubscriptionService.join() and .find_members(). + IMember.list_id attribute added; .mailing_list is now an alias that retrieves and returns the IMailingList. - list_id added (LP: #1024509)
* | * Expose `archive_policy` in the REST API. Contributed by AlexanderBarry Warsaw2012-08-204-0/+14
| | | | | | | | Sulfrian. (LP: #1039129)
* | Style fixes: compare enums with identity, not equality.Barry Warsaw2012-08-202-2/+2
| |
* | Update NEWSBarry Warsaw2012-08-201-2/+1
| |
* | A few fixes for schema migration on PostgreSQL.Barry Warsaw2012-08-203-4/+22
| | | | | | | | | | | | | | | | | | - migration.rst needs special cleanup since the Version table is no longer wiped by the test machinery. This only caused failures when running the migration.rst test multiple times, and only on PostgreSQL. - Complete the removal of archive_volume_frequency and generic_nonmember_action for PostgreSQL. - Remove setting archive_volume_frequency in the default style.
* | typoBarry Warsaw2012-08-191-1/+1
| |
* | * Removed obsolete `IMailingList` attribute `generic_nonmember_action.Barry Warsaw2012-08-199-10/+9
| | | | | | | | (LP: #975696)
* | * Fix residual references to the old `IMailingList` archive variables.Barry Warsaw2012-08-188-19/+28
| | | | | | | | (LP: #1031393)