summaryrefslogtreecommitdiff
path: root/src/mailman/config/config.py
Commit message (Collapse)AuthorAgeFilesLines
* PR288 vettedBarry Warsaw2017-08-291-2/+44
|
* Convert to click for CLI optionsBarry Warsaw2017-07-221-0/+1
|
* Add a UTC tag.Barry Warsaw2017-01-291-1/+1
|
* Close #306Barry Warsaw2017-01-291-3/+3
| | | | Update documentation links for ``config.cfg`` settings.
* Bump copyright years.Barry Warsaw2017-01-041-1/+1
|
* Fix an import.Barry Warsaw2016-11-291-1/+2
|
* Use `atpublic` for @public instead of internal copy.Barry Warsaw2016-11-291-1/+1
|
* New template system. Closes #249Barry Warsaw2016-07-161-2/+2
| | | | | The new template system is introduced for API 3.1. See ``src/mailman/rest/docs/templates.rst`` for details.
* Clean the config directory.Barry Warsaw2016-03-241-29/+17
|
* Several optimizations:Barry Warsaw2016-01-111-4/+2
| | | | | | | | | | | | * 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.
* Happy New Year.Barry Warsaw2016-01-021-1/+1
|
* Revert "Fix issue #3 by searching for the 'master' script in several possible"Barry Warsaw2015-11-011-15/+3
| | | | | | This reverts commit 8c471e067c4b31064c2f69c0afd048a7e756a429. The fix wasn't correct. Now we have a test for the expected behavior.
* Fix issue #3 by searching for the 'master' script in several possibleBarry Warsaw2015-05-151-2/+14
| | | | locations.
* Documentation fixes, given by Abhilash Raj.Barry Warsaw2015-03-131-4/+4
|\
| * change bin/mailman to mailman everwhere in docsAbhilash Raj2015-03-121-1/+1
|/
* We don't need the lazr.config workaround any more.Barry Warsaw2015-01-051-13/+2
|
* We don't need the 'six' package any more.Barry Warsaw2015-01-041-1/+1
|
* Bump copyright years.Barry Warsaw2015-01-041-1/+1
|
* * ``$cwd`` is now an additional substitution variable for the ``mailman.cfg``Barry Warsaw2015-01-031-0/+1
| | | | | | | | | | | | | file's ``[paths.*]`` sections. A new ``[paths.here]`` section is added, which puts the ``var_dir`` in ``$cwd``. It is made the default layout. * You can now view the contents of, inject messages into, and delete messages from the various queue directories via the ``<api>/queues`` resource. Also: inject_message() and inject_text() now return the filebase of the file injected into the queue directory.
* Add $cfg_file as an expansion variable for relative paths in the mailman.cfgBarry Warsaw2015-01-021-7/+15
| | | | | | file, and improve the error message when an expansion loop is found. With the `[mailman]layout: dev` path setting, put $var_dir relative to the mailman.cfg file.
* Even if we're not loading a user-defined mailman.cfg file (i.e. the user ranBarry Warsaw2015-01-021-1/+3
| | | | | | | `mailman info` after first install and we're creating the var dir), we still need to post-process so we get the UPPERCASE_DIR variables. Fix an UnboundNameError in the error printing.
* * You can access the system configuration via the resource pathBarry Warsaw2014-12-261-0/+3
| | | | | | | | | ``/3.0/system/configuration/<section>``. This returns a dictionary with the keys being the section's variables and the values being their value from ``mailman.cfg`` as verbatim strings. You can get a list of all section names via ``/3.0/system/configuration`` which returns a dictionary containing the ``http_etag`` and the section names as a sorted list under the ``sections`` key. The system configuration resource is read-only.
* Remove huge amounts of now unnecessary file boilerplate.Barry Warsaw2014-12-221-12/+7
|
* Use listid instead of (fqdn) listname in the metadata pickle.Barry Warsaw2014-12-151-12/+6
| | | | | | load_external() now always opens in utf-8 mode. More test repair.
* * Read the .cfg files not as bytes any more, but as UTF-8 encoding files.Barry Warsaw2014-12-151-4/+5
| | | | | | | | | * Revert LP: #1170347 to not .as_string() the message being added the mailbox, because Python 3.4 handles this properly by default. Fix up some lmtp code, though I don't thinkk it's quite right yet. Fix handler tests.
* Checkpointing.Barry Warsaw2014-11-301-23/+26
| | | | | | | | | | By using `six` I think I have most of the imports squared away. There's probably still uses of `unicode` built-ins that need fixing. The idea is to first get the test suite running (which it doesn't yet), and then to fix tests. There's a bug in lazr.config which requires us to patch it for now.
* Merge in the last of Aurelien's changes, and make the test suite pass withBarry Warsaw2014-10-311-1/+1
| | | | PostgreSQL.
* Remove some unused stuff.Barry Warsaw2014-10-111-2/+0
|
* Merge Abhilash's latest revisions.Barry Warsaw2014-10-111-2/+2
|
* Merge barry\'s branch with test fixes and clean codeAbhilash Raj2014-10-021-8/+3
|\
| * Migrations, with cleanup by Barry.Barry Warsaw2014-09-271-8/+3
| |
* | Don't initialize twiceAurélien Bompard2014-10-021-0/+2
|/
* - Configuration.style_configs(): Removed unused code.Barry Warsaw2014-03-021-6/+0
| | | | | - mailman.cfg: Removed unused section. - Improve the config.py test coverage to 100%.
* Bump copyright years.Barry Warsaw2014-01-011-1/+1
|
* Checkpointing.Barry Warsaw2013-11-251-4/+6
|
* - Write ./var/etc/mailman.cfg if it doesn't already exist.Barry Warsaw2013-03-201-0/+29
| | | | | | | - Use ./var/etc/mailman.cfg if it exists, just after ./mailman.cfg and just before ~/.mailman.cfg. - Add link to FHS - Whitespace normalization.
* Bump copyright years.Barry Warsaw2013-01-011-1/+1
|
* ConfigurationBarry Warsaw2012-11-041-2/+57
| | | | | | | | | | | | | | | ------------- * `[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.
* More consistency in the way post-configuration changes are processed. LessBarry Warsaw2012-07-021-20/+6
| | | | | | | | | | magic in the _post_process() method, more ConfigurationUpdatedEvents. More centralization of event initialization. Added property Configuration.language_configs. Instead of initializing events in initialize_2(), initialize them in initialize_1() and do it before the configuration is loaded.
* * `passlib`_ is now used for all password hashing instead of flufl.password.Barry Warsaw2012-07-021-6/+6
| | | | | | | | | | | | | | | | | | | | | | | 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.
* General code cleanup.Barry Warsaw2012-04-251-3/+2
| | | | | | | | - Add explicit dependency on zope.event in setup.py. - Use Python 3 compatible syntax for specifying that a class implements an interface, i.e. the @implementer class decorator. - print_function futures. - Whitespace normalization.
* * Header check specifications in the `mailman.cfg` file have changed quiteBarry Warsaw2012-04-061-10/+0
| | | | | | | | | | | | | | | | | | | | bit. The previous `[spam.header.foo]` sections have been removed. Instead, there's a new `[antispam]` section that contains a `header_checks` variable. This variable takes multiple lines of `Header: regexp` values, one per line. There is also a new `jump_chain` variable which names the chain to jump to should any of the header checks (including the list-specific, and programmatically added ones) match. * Fixed a typo when returning the configuration file's header match checks. (LP: #953497) Also: - Remove an unused method. - Improve test coverage for mailman/app/bounces.py - 100% test coverage for mailman/chains/headers.py - Various other minor code cleanup. - Fixed the 'any' rule, which was checking a bogus metadata dictionary key.
* Merge the Pipermail eradication branch. The scrubber is also removed.Barry Warsaw2012-03-171-6/+0
|\ | | | | | | | | | | | | | | | | | | | | | | * Configuration variable `[mailman]filtered_messages_are_preservable` controls whether messages which have their top-level `Content-Type` filtered out can be preserved in the `bad` queue by list owners. * Configuration section `[scrubber]` removed, as is the scrubber handler. This handler was essentially incompatible with Mailman 3 since it required coordination with Pipermail to store attachments on disk. * Schema additions: - mailinglist.filter_action
| * Eradicate Pipermail. Everything but the scrubber test works. That will takeBarry Warsaw2012-03-151-6/+0
| | | | | | | | some new APIs I suspect.
* | Fix up the archive_dir in the config filetoshio2012-03-131-0/+1
|/
* * Major redesign of the template search system, fixing LP: #788309. $var_dirBarry Warsaw2012-03-031-3/+3
| | | | | | is now used when search for all template overrides, site, domain, or mailing list. The in-tree English templates are used only as a last fallback.
* copybumpBarry Warsaw2012-01-011-1/+1
|
* * Implement the style manager as a utility instead of an attribute hangingBarry Warsaw2011-10-241-3/+2
| | | | | | off the `mailman.config.config` object. * Fixed bogus use of `bounce_processing` attribute (should have been `process_bounces`, with thanks to Vincent Fretin. (LP: #876774)
* Major terminology shift:Barry Warsaw2011-06-011-5/+5
| | | | | | | | | | | | | | | | | * Queue runners are now called just 'Runners' since several of them don't manage queue directories. * Ban the term 'qrunner' too. * The master queue runner watcher should now just be called the 'master' or the 'master runner'. * bin/qrunner -> bin/runner * mailman.qrunner log file -> mailman.runner * master-qrunner.lck -> master.lck * master-qrunner.pid -> master.pid Also: * Remove some obsolete files * Begin the .txt -> .rst renaming
* Rename 'queue' directory to 'runners' since not all subprocesses run a queue.Barry Warsaw2011-05-291-2/+2
|