summaryrefslogtreecommitdiff
path: root/src/mailman/bin/master.py
Commit message (Collapse)AuthorAgeFilesLines
* PR288 vettedBarry Warsaw2017-08-291-17/+25
|
* Convert to click for CLI optionsBarry Warsaw2017-07-221-93/+129
|
* Bump copyright years.Barry Warsaw2017-01-041-1/+1
|
* Use `atpublic` for @public instead of internal copy.Barry Warsaw2016-11-291-1/+1
|
* Fix the Flake8 ignore tagsAurélien Bompard2016-11-211-5/+5
|
* Rebase mailman/mailman!180 and cleanup # noqaBarry Warsaw2016-07-281-6/+6
|
* Don't use `flake8: noqa`.Barry Warsaw2016-04-011-6/+6
| | | | | | | This suppresses all errors in the file. Use `noqa`, although pep8 doesn't honor this for all errors. There may be a plugin which helps.
* Clean up the bin directory.Barry Warsaw2016-03-241-19/+11
|
* Happy New Year.Barry Warsaw2016-01-021-1/+1
|
* Remove the obsolete and mostly unimplemented onebounce script.Barry Warsaw2015-05-031-3/+3
| | | | | Move the options base class to utilities (even though only the master uses it). Remove other obsolete and unused code.
* * The test suite now runs successfully again with PostgreSQL. Given byBarry Warsaw2015-04-221-5/+11
|\ | | | | | | Aurélien Bompard. (LP: #1435941)
| * Propagate the MAILMAN_EXTRA_TESTING_CFG env var to subprocessesAurélien Bompard2015-04-221-5/+5
|/
* change bin/mailman to mailman everwhere in docsAbhilash Raj2015-03-121-1/+1
|
* Bump copyright years.Barry Warsaw2015-01-041-1/+1
|
* Fix the passing of certain essential environment variables down from theBarry Warsaw2015-01-021-4/+11
| | | | | | | | | `mailman` foreground command, through the `master` command and to the `runner` command. Specifically, to ensure that all agree on $VAR_DIR, we ahve to set MAILMAN_VAR_DIR in the environment that `runner` gets. Also, so that all agree on the same configuration, always pass -C pointing explicitly to the cfg file that the `mailman` command sees.
* Remove huge amounts of now unnecessary file boilerplate.Barry Warsaw2014-12-221-4/+0
|
* Fix a few issues with `python2 -3` compatibility.Barry Warsaw2014-11-191-2/+3
|
* Remove debugging.Barry Warsaw2014-11-161-1/+0
|
* Make sure runner subprocesses get covered during `tox -e coverage`.Barry Warsaw2014-11-161-2/+9
|
* Use print functions consistently through, and update all __future__ imports toBarry Warsaw2014-04-281-2/+2
| | | | | | | | reflect this. Also, mock out sys.stderr on some tests so that their nose2 output is quieter. A few other minor coding style consistencies.
* Bump copyright years.Barry Warsaw2014-01-011-1/+1
|
* Switch to PEP 435 enums from flufl.enums.Barry Warsaw2013-06-181-1/+1
|
* Bump copyright years.Barry Warsaw2013-01-011-1/+1
|
* * Improve the --help text for the `start`, `stop`, `restart`, and `reopen`Barry Warsaw2012-12-231-0/+2
| | | | subcommands. (LP: #1035033)
* copybumpBarry Warsaw2012-01-011-1/+1
|
* * `bin/mailman start --force` option is fixed. (LP: #869317)Barry Warsaw2011-10-161-1/+0
| | | | | | | | | | | | * acquire_lock_1(): No need to unlink the tempfile * Start.process(): Don't print error message when the lock is in stale_lock or host_mismatch status and --force has been given. * control.rst: Refactor test code into test_control.py. * test_create.py: To more accurately mimic argparse, FakeParser.error() needs to `sys.exit(1)`. The `SystemExit` must also be caught in the appropriate tests. * logging.py: Locking is now down by the flufl.lock package, so apply the `mailman.lock` configuration to it.
* * Moderating a message with Action.accept now sends the message. (LP: #827697)Barry Warsaw2011-08-221-0/+1
| | | | | | | | | | | Also: * Use utilities.datetime.now() so that moderation related dates are predictable during the test suite. * When a message is accepted, drop it in the pipeline queue. The above bug was caused by the message going in the incoming queue, and then being re-moderated. * Expose mailman.bin.master.Loop in __all__. * Add some helpful debug logging.
* Typos, left over crud, and a refactoring.Barry Warsaw2011-06-101-2/+2
|
* Major terminology shift:Barry Warsaw2011-06-011-95/+93
| | | | | | | | | | | | | | | | | * 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
* Happy New Year.Barry Warsaw2011-01-011-1/+1
|
* * Start to get rid of pylint; it's more trouble than it's worth and pyflakesBarry Warsaw2010-12-221-43/+47
| | | | | | | | | | | | | does a pretty good job anyway. * Remove master.get_lock_data() now that flufl.lock 2.1 provides the same detailed information. * Add WatcherState.none to indicate that the master is not running. * Instrument master_state() and acquire_lock_1() for testing, and add unittests. * LBYL for 'bin/mailman start' so that the error message when the master is already running happens in the foreground process and is more user friendly. * Add 'bin/mailman status' to provide master queue runner status on the command line.
* Upgrade from using the locknix package to using flufl.lock.Barry Warsaw2010-11-271-4/+4
|
* Fix the obvious errors identified by pyflakes. Skip false positives (mostlyBarry Warsaw2010-10-081-3/+3
| | | | | due to _() interpolation) and a few other problems that did not have immediately obvious fixes.
* Updates for the latest releases of flufl.enum and flufl.i18n.Barry Warsaw2010-05-021-1/+1
|
* More fixes to the start up procedure. The root cause of the fix is that whenBarry Warsaw2010-03-281-15/+21
| | | | | | | | | | | | | | | | | | var_dir in the config file is a relative path, the bin/master and bin/qrunner subprocesses end up creating another hierarchy under $VAR_DIR. This is because 'bin/mailman start' chdirs to $VAR_DIR before starting master. The fix involves putting the absolute path to $VAR_DIR in the $MAILMAN_VAR_DIR environment variable. If the configuration file reader sees this, it uses the value instead of $var_dir from the configuration file. Another change is to remove qrunner's --subproc/-s option and stick this in the environment as well, using $MAILMAN_UNDER_MASTER_CONTROL. Other fixes here include: * Deciphering the master lock file contents correctly * Reformatting the error message so that it fits in 79 columns when prefixed by argparse error info.
* Checkpointint support for different path layouts, allowing us to optionallyBarry Warsaw2010-01-271-2/+2
| | | | | | | | support the Filesystem Hierarchy Standard. This is done through the configuration file. * add a --paths/-p option to 'bin/mailman info' * PIDFILE -> PID_FILE
* Happy New Year.Barry Warsaw2010-01-011-1/+1
|
* * Refactor the language manager off of the config object and into a utility.Barry Warsaw2009-12-101-7/+9
| | | | | | | | * Fix a few small typos in exception handlers. * Move the initialization of the Zope Component Architecture into the first initialization step. The only reason we couldn't do that previously was because the domain object referenced the config, causing a circularity problem. Refactor the Domain implementation to avoid that.
* * Mostly eradicate mentions of mailmanctl.Barry Warsaw2009-12-051-9/+8
| | | | * In most human readable text, qrunner -> queue runner
* Factor out most of the i18n subsystem and convert to using the flufl.i18nBarry Warsaw2009-11-151-1/+1
| | | | package.
* When testing, the signal.pause() is a problem because the TestableMaster isBarry Warsaw2009-10-151-4/+8
| | | | | never killed with a signal. In the real-world, it is though. So put the .pause() in a method that can be overridden by TestableMaster.
* Move mailmanctl start and stop commands into bin/mailman.Barry Warsaw2009-10-061-8/+14
|
* Remove the special cases for pylint. Version 0.18 "works" out of the box ↵Barry Warsaw2009-08-251-5/+66
| | | | | | now, except that it has a bug where it can't handle "from __future__ import absolute_import". Robustify master.py so that we can't get into a situation where the pid dictionary changes size during iteration. No test, but this should be fixed.
* A start on the 'mailman' subcommand layout, with the help of argparse. RightBarry Warsaw2009-08-091-2/+3
| | | | | | | | | | | | | now the only subcommand is 'lists' which displays all mailing lists like the old bin/list_lists command did (which is now removed). Remove bin/version since 'bin/mailman --version' does this for us. Simplify the calculation of the bin scripts; there will be many fewer of them. Extend i18n to use a class based structure. By default, all i18n strings are dedented after translation and substitution, which improves command line help. The class structure allows for overriding this behavior.
* Pick some lintBarry Warsaw2009-07-101-5/+0
|
* More lint picking.Barry Warsaw2009-07-041-8/+11
| | | | Fix a documentation link.
* Refactor __import__'s into a separate utility module.Barry Warsaw2009-05-161-4/+2
|
* rsplit -> rpartitionBarry Warsaw2009-05-151-1/+1
|
* Push the source directory into a 'src' subdirectory so that zc.buildout worksBarry Warsaw2009-01-251-0/+452
correctly regardless of how it's used.