Add a send-digests subcommand to send list digests right now.
commitbb45766f91ddce5e68ddf0a1fe6fe67d2f93dd60
authorBarry Warsaw <barry@python.org>
Sun, 20 Dec 2015 17:44:06 +0000 (20 12:44 -0500)
committerBarry Warsaw <barry@python.org>
Sun, 20 Dec 2015 17:44:06 +0000 (20 12:44 -0500)
tree1eb70a7836fc5e59968c635f65715de91c766c09
parentd7bc81a6ab97cd00c70da901cb1d04f80f896685
Add a send-digests subcommand to send list digests right now.

* Add a `mailman send-digests` subcommand which replaces the functionality of
  the MM2.1 senddigests.py cronjob.

* Use mlist.data_path where appropriate instead of crafting it from
  config.LIST_DATA_DIR.  This makes it more consistent to switch to using the
  list-id as the data subdirectory.

* Refactor the to_digest handler so that we can implement
  maybe_send_digest_now() for the internal API.

* Fix some typos in subcommand --help summaries.
14 files changed:
port_me/senddigests.py [deleted file]
src/mailman/app/lifecycle.py
src/mailman/app/tests/test_lifecycle.py
src/mailman/commands/cli_control.py
src/mailman/commands/cli_help.py
src/mailman/commands/cli_lists.py
src/mailman/commands/cli_send_digests.py [new file with mode: 0644]
src/mailman/commands/tests/test_send_digests.py [new file with mode: 0644]
src/mailman/database/alembic/versions/70af5a4e5790_digests.py
src/mailman/docs/NEWS.rst
src/mailman/handlers/to_digest.py
src/mailman/interfaces/mailinglist.py
src/mailman/model/mailinglist.py
src/mailman/runners/docs/digester.rst