summaryrefslogtreecommitdiff
path: root/src/mailman/commands
Commit message (Collapse)AuthorAgeFilesLines
...
* | Schema change. After discussion at Pycon, we decided to change "real_name" toBarry Warsaw2012-03-157-27/+29
| | | | | | | | | | | | | | | | | | | | | | "display_name" across the board. * `IMailingList.real_name` -> `IMailingList.display_name` * `IUser.real_name` -> `IUser.display_name` * `IAddress.real_name` -> `IAddress.display_name` * Schema changes: - real_name -> display_name (mailinglist, user, address)
* | * The Prototype archiver now stores its files in maildir format inside ofBarry Warsaw2012-03-141-0/+1
|/ | | | `$var_dir/archives/prototype`, given by Toshio Kuratomi.
* Move the interact module to a better sub-package location.Barry Warsaw2012-03-132-2/+2
|
* * The LMTP server now requires that the incoming message have a `Message-ID`,Barry Warsaw2012-03-131-27/+26
| | | | | | | | | | | otherwise it rejects the message with a 550 error. Also, the LMTP server adds the `X-Message-ID-Hash` header automatically. The `inject` cli command will also add the `X-Message-ID-Hash` header, but it will craft a `Message-ID` header first if one is missing from the injected text. Also, `inject` will always set the correct value for the `original_size` attribute on the message object, instead of trusting a possibly incorrect value if it's already set. The individual `IArchiver` implementations no longer set the `X-Message-ID-Hash` header.
* * IPython support in `bin/mailman shell` contributed by Andrea Crotti.Barry Warsaw2012-03-122-6/+44
|\ | | | | | | (LP: #949926).
| * various small fixes after reviewing with Barry WarsawAndrea Crotti2012-03-131-11/+9
| |
| * - add a section in the schema to customize the shellAndrea Crotti2012-03-131-2/+30
| | | | | | | | | | - add the shell completion to the python shell - add an option to use IPython, disabled by default
* | * The experimental `maildir` runner is removed. Use LMTP.Barry Warsaw2012-03-121-1/+0
|/
* Fix welcome_message_uri to do the placeholder interpolations guaranteed in theBarry Warsaw2012-03-041-0/+1
| | | | | | | | IMailingList documentation. Also: * `ILanguageManager.add()` returns the `ILanguage` object just created.
* * A welcome message is sent when the user confirms their subscription viaBarry Warsaw2012-03-042-0/+84
| | | | | | | | | | email. Also: - The user's Full Name is included on the To line of a welcome message. - Clean up some tests. - The welcome_message_uri for lists using the default style is set to mailman:///welcome.txt so a welcome message is sent by default.
* * Added a `help` email command.Barry Warsaw2012-03-0110-32/+265
| | | | | | | Also: - updated the 'join' command's descriptions - email commands should now have a short_description. The description (i.e. long description) should not repeat this information.
* Prevent the `confirm` command from running more than once on the same token.Barry Warsaw2012-03-011-1/+9
| | | | | Also add some debugging to the verification message, IOW, which template is it using (this may be more generally useful, but for now, it's an experiment).
* * The `join` email command no longer accepts an `address=` argument. ItsBarry Warsaw2012-02-292-59/+47
| | | | | | | | | `digest=` argument now accepts the following values: `no` (for regular delivery), `mime`, or `plain`. Also: - Fix get_queue_messages() to properly sort on the string representation of a header, since it could be a Header instance.
* Make sure that an email subscription request is ignored for addresses whichBarry Warsaw2012-02-291-3/+9
| | | | are already members of the list.
* Don't try to double join someone via a single email command.Barry Warsaw2012-02-291-0/+8
|
* copybumpBarry Warsaw2012-01-0119-19/+19
|
* Replace the password stuff with flufl.password.Barry Warsaw2012-01-011-2/+2
|
* * `bin/mailman shell` is an alias for `withlist`.Barry Warsaw2011-11-131-0/+8
|
* Remove extraneous `test_suite()` functions. zope.testrunner willBarry Warsaw2011-10-302-16/+0
| | | | | | | | | automatically do the right thing in most cases. Keep test_suite() in test_documentation.py since these dynamically set up docs tests properly. Refactor test_passwords.py so that base class tests aren't bogusly run. Also, remove test_membership.py which was essentially disabled because it was testing the MM2 membership API.
* - Be a little more careful about preparing the SQL statements for executionBarry Warsaw2011-10-221-2/+2
| | | | | | in the database, namely strip out empty lines and comments first, otherwise PostgreSQL spews "empty statement" errors at us. - Down to 4 test failures.
* * `bin/mailman start --force` option is fixed. (LP: #869317)Barry Warsaw2011-10-164-63/+200
| | | | | | | | | | | | * 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.
* Fix a shallow test failure.Barry Warsaw2011-09-241-1/+1
|
* Finally, all doctests are named .rstBarry Warsaw2011-09-2313-0/+0
|
* * The IMailingList attribute ``host_name`` has been renamed to ``mail_host``Barry Warsaw2011-06-162-2/+2
| | | | | for consistency. This changes the REST API for mailing list resources. (LP: #787599)
* Plumb key=value arguments through to the `bin/mailman inject` command.Barry Warsaw2011-06-152-6/+44
|
* * Move inject.py to mailman.app package.Barry Warsaw2011-06-151-1/+1
| | | | | * Expose **kws to inject_text() * Add tests.
* Fixed two typos.Barry Warsaw2011-06-111-2/+2
| | | | | * Use a list comprehension to get a proper list of addresses. * config.devmode.testing must be converted to a boolean.
* Do not allow a list to be created with a bogus owner address. (LP: #778687)Barry Warsaw2011-06-114-48/+143
|
* Refactor MTA alias creation.Barry Warsaw2011-06-102-15/+135
| | | | | | | | | | | | | * Create an IMailTransportAgentAliases utility that contains all the logic for generating all the aliases for a mailing list, both the fully-qualified ones and the local-part ones. * Add -f and -s options to `bin/mailman aliases` to facilitate outputing the aliases in other formats than the configured one, and for printing out a simple list of the aliases. * IMailTransportAgentAliases -> IMailTransportAgentLifecycle; also add a new definition for IMailTransportAgentAliases
* Major terminology shift:Barry Warsaw2011-06-014-29/+29
| | | | | | | | | | | | | | | | | * 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-292-2/+2
|
* Typo fix.Barry Warsaw2011-04-121-1/+1
|
* encrypt_password(): New convenience function for ensuring that a password isBarry Warsaw2011-04-082-3/+4
| | | | | | | | | | | | | | | both encrypted according to a scheme, and a bytes object. add_member(): Use encrypt_password(). cli_members: Give the user a default, user-friendly password. Of course, this will be encrypted so it can't be retrieved, but it can be reset. Passwords are stored as bytes objects, not unicode now. ConfigLayer: Set the default test password scheme to cleartext. General test repair.
* * Give users a unique, random, immutable user id.Barry Warsaw2011-03-181-2/+2
| | | | | * Find users by user_id via the user manager. * Extend the repr of users to include the user id.
* Utils.maketext() and Utils.findtext() are gone.Barry Warsaw2011-03-162-2/+3
|
* Happy New Year.Barry Warsaw2011-01-0117-17/+17
|
* Because it was just to damn confusing, rename IAddress.address toBarry Warsaw2011-01-015-39/+55
| | | | | | IAddress.email and IAddress.original_address to IAddress.original_email. From now on we'll use "address" to talk about the IAddress object and "email" to talk about the textual email address.
* Insulate the test environment from the running environment. Sadly, the testBarry Warsaw2010-12-222-0/+8
| | | | | | ports are still hard coded. Also, 'bin/mailman info' dumps the REST root url and credentials.
* * Start to get rid of pylint; it's more trouble than it's worth and pyflakesBarry Warsaw2010-12-223-1/+117
| | | | | | | | | | | | | 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.
* Fix the obvious errors identified by pyflakes. Skip false positives (mostlyBarry Warsaw2010-10-083-4/+0
| | | | | due to _() interpolation) and a few other problems that did not have immediately obvious fixes.
* Many documentation fixes for better Sphinx output.Barry Warsaw2010-09-0813-33/+91
|
* CheckpointingBarry Warsaw2010-05-061-1/+1
|
* Refactor the actual imports into a utility. This leaves the command toBarry Warsaw2010-05-062-54/+4
| | | | process just the front-end.
* * A start to import of Mailman 2.1 config.pck files.Barry Warsaw2010-04-052-2/+112
| | | | * Move DigestFrequency from mailinglist to digests.
* Tests for import.Barry Warsaw2010-04-042-0/+93
|
* List-Post header should be retained in MIME digest messages (LP: 526143)Barry Warsaw2010-03-281-2/+2
|
* * bin/info -p/--paths -> -v/--verboseBarry Warsaw2010-03-281-2/+2
| | | | * Make sure all paths are absolute
* More fixes to the start up procedure. The root cause of the fix is that whenBarry Warsaw2010-03-281-0/+3
| | | | | | | | | | | | | | | | | | 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.
* * Fix two type specifications in argparse.Barry Warsaw2010-03-031-2/+2
| | | | * Update printing of version string to avoid argparse DeprecationWarnings.
* Checkpointint support for different path layouts, allowing us to optionallyBarry Warsaw2010-01-275-5/+65
| | | | | | | | support the Filesystem Hierarchy Standard. This is done through the configuration file. * add a --paths/-p option to 'bin/mailman info' * PIDFILE -> PID_FILE