summaryrefslogtreecommitdiff
path: root/mailman/queue/docs
Commit message (Collapse)AuthorAgeFilesLines
* Push the source directory into a 'src' subdirectory so that zc.buildout worksBarry Warsaw2009-01-259-1071/+0
| | | | correctly regardless of how it's used.
* Several important cleanups.Barry Warsaw2009-01-162-30/+37
| | | | | | | | | | * Turn on absolute_import and unicode_literals everywhere, and deal with the aftermath. * Use 'except X as Y' everywhere. * Make the module prologues much more consistent. * Use '{}'.format() consistently, except for logger interface. * Because of the problems with calling ** args with unicode keywords, hide calls to Template.substitute() behind an API.
* Mark's backport of file preservation in the queue runners. Test and cleanupBarry Warsaw2009-01-041-4/+33
|\ | | | | | | by Barry.
* | Remove the mailman.interface magic. Use the more specific interface imports.Barry Warsaw2009-01-042-3/+3
|/
* - For command line scripts, -C names the configuration file to use. ForBarry Warsaw2009-01-032-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | convenient testing, if -C is not given, then the environment variable MAILMAN_CONFIG_FILE is consulted. - Mailing lists no longer have a .web_page_url attribute; this is taken from the mailing list's domain's base_url attribute. - Incoming MTA selection is now taken from the config file instead of plugins. An MTA for Postfix+LMTP is added. bin/genaliases works again. - The LMTP server now properly calculates the message's original size. - If a message has no Message-ID, the stock archivers will return None for the permalink now instead of raising an assertion. - IArchiver no longer has an is_enabled property; this is taken from the configuration file now. - In bin/create_list, fixed a unicode problem when the language is defined in the configuration file. - Fixed bin/dumbdb, bin/list_lists, bin/remove_list, bin/unshunt, and bin/mailmanctl - config.archivers is a property now, not a dictionary that needs initialization from plugins. - IMailTransportAgent interface has been added.
* More test repairs.Barry Warsaw2008-12-311-1/+1
| | | | | | | * Move the lmtp configurations to lazr.config * Fixes to master.py * In qrunner.py, don't override initialize() * Make sure subprocesses get configured correctly during tests
* Many test fixes, mostly by temporarily changing config -> Defaults.Barry Warsaw2008-12-291-8/+7
| | | | | | | Rewrote start_qrunners() for new lazr.config based configuration. ReopenableFileHandler.reopen() given a default filename argument for reopening to a different file. Useful in tests.
* More test repairs.Barry Warsaw2008-12-281-11/+12
|
* More test reairs.Barry Warsaw2008-12-271-9/+9
|
* Down to only 27 test failures.Barry Warsaw2008-12-261-3/+2
| | | | | | | | | More temporary config -> Defaults changes. More fixes to smtp_direct.py. Other queue runner fixes, including allowing make_testable_runner() to take an optional 'name' which overrides the default class-calculated name.
* Use my lazr.config megamerge branch for now, even though it's still underBarry Warsaw2008-12-231-2/+1
| | | | | | | | | | | | | | development. Completely rework the way switchboards and queue runners are initialized, i.e. driven from the configuration file instead of hard coded. The various queue runner directories are no longer available thorugh the config object directly. Get them from config.switchboards. Provide minimal mailman.cfg and testing.cfg configuration files. Neuter styles for now until they can be consolidated with lazr.config.
* Convert more configuration variables to lazr.config.Barry Warsaw2008-12-227-7/+0
| | | | | | | | Add .push() and .pop() methods to the Configuration object. Put the 'config' object in the globals of doctests. Add some test layers for setting up the configuration and the SMTP server.
* More clean up.Barry Warsaw2008-09-291-1/+1
| | | | | | - Remove Utils.reap() - Flesh out interfaces. - PEP 8 names.
* Merge in command refactoring branch.Barry Warsaw2008-08-122-6/+68
|\ | | | | | | | | | | Begin to flesh out the tests for the join command. Refactor out notifications from the add_member() function.
| * Checkpointing new command infrastructure.Barry Warsaw2008-08-121-0/+65
| | | | | | | | | | | | - Add join command - Add echo command - Add end command
* | Use IMailingList.posting_address (a.k.a. List-Post header) in theBarry Warsaw2008-07-061-18/+2
| | | | | | | | | | | | | | Mail-Archive.com hash calculation, not the post-id sequence number. test_documentation now starts and stops the smtp listener, simplifing many tests.
* | mailman.tests should contain only tests.Barry Warsaw2008-07-035-8/+8
|/ | | | mailman.testing should contain any support for running the tests.
* Handle commands in the body of a plain text email message.Barry Warsaw2008-04-261-0/+45
|
* Update and reorganize the command queue runner so that it works with theBarry Warsaw2008-04-261-0/+61
| | | | | plugin architecture. Update the Echo command to the new architecture. Add a doctest of course.
* Fix the archiver doctest.Barry Warsaw2008-03-311-3/+5
|
* Fix the incoming doctest.Barry Warsaw2008-03-311-7/+12
|
* More fixes to get the basic end-to-end delivery mechanisms working.Barry Warsaw2008-03-301-0/+35
| | | | | | | | | - Lots of Pipermail work just to get it to play nice with the new apis. - Fix ARCHIVE_SCRUBBER - Lots of changes to mailman.app.archiving, especially to provide an adapter from the new MailingList api to the one expected by Pipermail (e.g. archive_dir()). - Add a test of the basic pipermail archiver.
* Added a test of the OutgoingRunner, and subsequent changes to make it pass,Barry Warsaw2008-03-271-0/+96
| | | | | | | | | | | | | | including: - MailingList.full_path -> IMailingList.data_path and implement this as a property on the MailingList object. - Fix the 'decorate' handler to work with the new member/user data model, instead of the old MemberAdaptor interface. - Fix a few problems with the smtp-direct handler, though this needs more work and tests. - Add some debug logging to both the test smtplistener and the SMTPServer proxy. Fix the proxy's consumption of messages from the thread queue. - Fix the smtplistener's calculation of the X-Peer header.
* Move mailman.database.txnsupport to mailman.database.transaction and updateBarry Warsaw2008-03-131-2/+56
| | | | | | | | the txn() decorator. It no longer requires a _withtxn() method since it knows how to commit and abort the current transaction using the global database. Flesh out the lmtp.txt doctest with documentation for both bogus and valid subaddresses.
* Add a working (though not yet complete) test for the LMTP runner.Barry Warsaw2008-03-121-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor the TestableMaster class so that doctests don't need to do all the threading and event fiddling themselves. Hide all that in the test class. In bin/master, add the -r/--runner option to allow overriding the set of queue runners to start from the command line. This is much more convenient than fiddling the config file (which is still supported), and it allows us to start a subset of the runners from the TestableMaster class. Refactor the calculation of queue runner shortcut names into Configuration.add_qrunner(). This way, it's easy to share between bin/qrunner and bin/master. Use pkg_resource in bin/testall to create the test configuration file. We're still using mailman.__file__ as the target to os.walk() though, so this conversion isn't complete. In bin/testall, update to the new convention of putting .options and .arguments on the parser instance, so we only need to pass back one thing. In test_documentation.py, use config.verbosity instead of config.options.verbosity. Wind that through to bin/testall while we're at it. Update loginit.py so that defaults for all the logging options can be found in a [*] section. This is better than [DEFAULT] because the latter requires %-interpolation and still requires each sublogger to be specified explicitly. Now we just set values in the [*] section and have them apply to all loggers. Allow for passing bin/testall's -v and -e options to any subprocesses that get created, e.g. via the TestableMaster. Now testall will write a logging.cfg file with a [*] entry as appropriate. It's DEFAULT_DATABASE_URL now, not SQLALCHEMY_ENGINE_URL. StockDatabase._reset() requires that the store be rolled back before it's reset. Otherwise if there are outstanding transactions, the reset will fail with an OperationalError. Update the LMTPRunner. Have it return a 501 error if the message has defects. Most defective messages are spam. Make the LMTPRunner startable and stoppable. Just because it's asyncore based doesn't mean that's not possible <wink>. Enable the LMTP runner in tests.
* Fix a typo in a roster name.Barry Warsaw2008-03-061-155/+0
| | | | | | | | | | Remove an outdated comment. Add an SMTPServer wrapper class to the test helpers module. This will be used in tests of the outgoing queue, which actually needs to talk to an SMTP server. Adapt the smtpd-based server to being run under thread control, and remove some now unnecessary code.
* Bite the bullet: rename the Mailman package to mailman.Barry Warsaw2008-02-276-0/+808