summaryrefslogtreecommitdiff
path: root/src/mailman/commands/docs
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'pluggable-workflows' into pluginpluginJ08nY2017-08-071-3/+3
|\
| * Migrate the [un]subscription_policy attribute.J08nY2017-08-071-3/+3
| | | | | | | | | | | | | | | | | | - This is quite a huge commit, since it changes the type of the MailingList.subscription_policy and unsubscription_policy attributes to the new names of pluggable workflows, in all occurences. - Also adds a migration to migrate the attributes to the new types. - Adds tests for the migration.
* | Add new logger which plugins can use.J08nY2017-08-071-0/+1
| |
* | Add per-plugin hooks, add docs about plugins.J08nY2017-08-071-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Removes pre_hook, post_hook and ext_dir. With the latter being unused. Warns on startup if the hooks are present in config. - Adds IPlugin interface with pre_hook and post_hook methods. - Adds 'class' config parameter to plugins, which can be set to a class implementing the IPlugin interface, it will be initialized once on Mailman's startup, then before the DB setup the pre_hook will be run, after DB and other components the post_hook will be run. Plugin instances are stored in the config.plugins dict, with keys being their configuration section names.
* | Add pluggable components.J08nY2017-08-072-1/+1
|/ | | | | | | | | | | | | | | | | - Adds the notion of a 'plugin'. - A plugin has a package path and a flag specifying whether it's enabled or not. - Adds a find_pluggable_components function similar to the find_components one. This one dynamically searches not only the mailman package but all of plugins. - e.g. find_pluggable_components('rules', IRule) finds all IRule components in mailman.rules but also in example_plugin.rules for plugin names example_plugin. - Uses the find_pluggable_components function in place of find_components when searching for Rules, Handlers, Chains, EmailCommands, and Styles.
* Set a timeout on the lock acquisitionBarry Warsaw2017-07-271-1/+2
|
* Convert to click for CLI optionsBarry Warsaw2017-07-2215-562/+298
|
* Implement caching suffix list with in-tree fallback.Barry Warsaw2017-01-012-2/+2
| | | | | | | | Also: * Change doctest cleanups to be an ExitStack. * Added [dmarc]cache_lifetime setting. * Cleanup pass through dmarc-mitigation.rst. * Be sure the cached org domain file is cleaned up when the world is reset.
* Fix doctests to properly set unsubscription_policy = SubscriptionPolicy.openMark Sapiro2016-10-251-0/+1
| | | | where needed.
* Fix test.Barry Warsaw2016-09-131-4/+4
|
* Fix more tests.Barry Warsaw2016-09-111-2/+5
|
* Reorganize the documentation for better accesibilityAbhilash Raj2016-08-211-0/+8
|
* New template system. Closes #249Barry Warsaw2016-07-162-12/+5
| | | | | The new template system is introduced for API 3.1. See ``src/mailman/rest/docs/templates.rst`` for details.
* Add some documentation.Barry Warsaw2016-04-231-15/+38
|
* Fix #228Barry Warsaw2016-04-221-0/+1
| | | | | | | | ``mailman shell`` now supports readline history if you set the ``[shell]history_file`` variable in mailman.cfg. Also, many useful names are pre-populated in the namespace of the shell. (Closes: #228) With test coverage.
* A bit of pre-merge cleanup.Barry Warsaw2016-03-221-13/+7
| | | | | | | | | | | * Reorder some add_argument() parameters. * Reword some help text. * Reword some of the doctest language. * Clean up whitespace. * Minor coding style change in unittests. * Add another unittest. * Fix a docstring (not related to these change). * Add NEWS.
* Changed domain creation to True as defaultGurkirpal2016-03-221-2/+9
| | | | | | Added tests for domain option Updated docs for creating list from shell
* The ``mailman members`` command can now be used to display members based onBarry Warsaw2015-12-221-50/+47
| | | | | subscription roles. Also, the positional "list" argument can now accept list names or list-ids.
* * REST API version 3.1 introduced. Mostly backward compatible with versionBarry Warsaw2015-07-181-2/+2
| | | | | | 3.0 except that UUIDs are represented as hex strings instead of 128-bit integers, since the latter are not compatible with all versions of JavaScript.
* * Messages now include a `Message-ID-Hash` as the replacement forBarry Warsaw2015-06-141-4/+4
| | | | | | `X-Message-ID-Hash` although the latter is still included for backward compatibility. Also be sure that all places which add the header use the same algorithm.
* Full test suite passes.Barry Warsaw2015-04-141-38/+12
| | | | | | | | | | | | | * Make sure Registrar.discard() removces any workflow state manager state associated with the token, and that this is flushed to SA. * Adjust the email commands to the new IRegistrar API. * Update the IRegistrar interface. * Add IWorkflowStateManager.discard() and make `count` an attribute/property. * Mark two tests as expected failures due to LP: #1444184.
* Abhilash's branch, pre-cleaning.Barry Warsaw2015-04-062-3/+2
|\
| * add tests, fix docs, remove contact_addressAbhilash Raj2015-03-281-2/+1
| |
* | Replace add_member() with subscribe() helper.Barry Warsaw2015-03-261-38/+16
| |
* | * Refactor add_member() so that it uses a RequestRecord namedtuple.Barry Warsaw2015-03-211-12/+25
|/ | | | | | * RequestRecord contains no password key so these are not part of the held requests database any more. * Pending record contains `email` now instead of `address`.
* * ``mailman lists --domain`` was not properly handling its arguments. GivenBarry Warsaw2015-03-131-4/+4
|\ | | | | | | by Manish Gill. (LP: #1166911)
* \ Documentation fixes, given by Abhilash Raj.Barry Warsaw2015-03-133-6/+6
|\ \
| * | change bin/mailman to mailman everwhere in docsAbhilash Raj2015-03-123-4/+4
|/ /
* | We don't need the 'six' package any more.Barry Warsaw2015-01-042-3/+2
| |
* | * ``$cwd`` is now an additional substitution variable for the ``mailman.cfg``Barry Warsaw2015-01-031-14/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Pass all command tests.Barry Warsaw2014-12-152-6/+2
| |
* | More test repair.Barry Warsaw2014-12-152-5/+4
| |
* | Core tests pass.Barry Warsaw2014-12-151-1/+1
| |
* | Port some of the commands.Barry Warsaw2014-12-137-22/+21
| |
* | Checkpointing.Barry Warsaw2014-11-303-14/+14
| | | | | | | | | | | | | | | | | | | | 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.
* | Tox-ify the test suite. Now you don't have to create a virtualenv separately.Barry Warsaw2014-11-071-23/+11
| | | | | | | | | | | | | | | | | | | | | | To do this, we have to handle random test ordering, since tox explicitly sets PYTHONHASHSEED. That's a good thing for the future Python 3 port. Removed `mailman conf -t/--sort`; now the output is always sorted. RFC 2369 headers are now sorted before being added. etag repr dicts are sorted using pprint.pformat().
* | Merge abompard's fixes to the Postgres test suite.Barry Warsaw2014-10-301-2/+2
| |
* | Move alembic settings to a separate alembic.cfg.Barry Warsaw2014-10-131-1/+1
| |
* | Merge Aurélien Bompard's latest merge branch, with some cleaning up by Barry.Barry Warsaw2014-10-131-1/+1
|\ \
| * | * remove migrate commandAbhilash Raj2014-10-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * remove alembic.cfg, move contents to schema.cfg * fix import errors in src/mailman/model/language.py * add indexes * change the previously wrong written tablename autoresponserecord * change alembic_cfg to use schema.cfg instead of alembic.cfg
| * | Include Alembic and SQLAlchemy logging into the Mailman logging systemAurélien Bompard2014-10-071-1/+3
| | |
* | | Add the [logging.database] section and use it to configure the SQLAlchemy andBarry Warsaw2014-10-121-0/+1
|/ / | | | | | | Alembic loggers.
* | Use print functions consistently through, and update all __future__ imports toBarry Warsaw2014-04-2814-90/+90
| | | | | | | | | | | | | | | | reflect this. Also, mock out sys.stderr on some tests so that their nose2 output is quieter. A few other minor coding style consistencies.
* | * `mailman conf` now has a `-t/--sort` flag which sorts the output by sectionBarry Warsaw2013-09-011-0/+12
|\ \ | | | | | | | | | | | | and then key. Contributed by Karl-Aksel Puulmann and David Soto (LP: 1162492)
| * | Added an example to the docsKarl-Aksel Puulmann2013-04-061-1/+8
| | |
| * | Fixed tests broken by previous commitKarl-Aksel Puulmann2013-04-061-0/+1
| |/
* / Add enough __init__.py files to make these docs directories discoverable.Barry Warsaw2013-08-261-0/+0
|/
* * When creating the initial file system layout in ``var``, e.g. viaBarry Warsaw2013-03-201-1/+5
|\ | | | | | | | | | | | | ``bin/mailman info``, add an ``var/etc/mailman.cfg`` file if one does not already exist. Also, when initializing the system, look for that file as the configuration file, just after ``./mailman.cfg`` and before ``~/.mailman.cfg``. (LP: #1157861)
| * - Write ./var/etc/mailman.cfg if it doesn't already exist.Barry Warsaw2013-03-201-1/+4
|/ | | | | | | - Use ./var/etc/mailman.cfg if it exists, just after ./mailman.cfg and just before ~/.mailman.cfg. - Add link to FHS - Whitespace normalization.
* Clean up branch:Barry Warsaw2013-03-192-61/+68
| | | | | | | | | | | | | | - Fix copyright years. - Sort imports - "mailmanconf" -> "conf" - Add "-o -" as a synonym for output to stdout - Use Python 2.7 style {} format keys. - Line folding. - Do be sure to close the file in .process() since it could be called from API code. - Clean up the docs. - Add some tests. - Acknowledge David Soto.