summaryrefslogtreecommitdiff
path: root/mailman/bin
Commit message (Collapse)AuthorAgeFilesLines
* Push the source directory into a 'src' subdirectory so that zc.buildout worksBarry Warsaw2009-01-2535-6263/+0
| | | | correctly regardless of how it's used.
* More cleanup.Barry Warsaw2009-01-208-455/+3
|
* Complete the integration of MTA setup with list creation and deletion. MakeBarry Warsaw2009-01-064-33/+62
| | | | | | | | | Postfix lmtp file more compliant with the Postfix docs. (Thanks Patrick Koetter). Fix a few more lazr.config conversion issues. Fix bin/show_qfiles, and add a --summary switch.
* The conversion from Defaults.py to lazr.config is complete.Barry Warsaw2009-01-061-171/+0
| | | | | | | | | | | lazr.config 1.1 now has everything we need, so we don't need the special develop hack. make_instance is no longer necessary. Refactor the style stuff into their own directory. Finally! Move the delivery module into the mailman.mta package.
* Defaults module is mostly eradicated, converted to lazr.config. The testBarry Warsaw2009-01-051-4/+4
| | | | suite does not yet work though.
* Picking some (py)lint.Barry Warsaw2009-01-049-21/+8
|
* "Fix" Pipermail in the sense that it doesn't traceback.Barry Warsaw2009-01-032-5/+6
| | | | | | | | Fix some typos in Utils.py Fix add_members and list_members Add a testing MTA.
* - For command line scripts, -C names the configuration file to use. ForBarry Warsaw2009-01-039-103/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Remove now redundant file.Barry Warsaw2009-01-011-288/+0
|
* Bump copyright yearsBarry Warsaw2009-01-0143-43/+43
|
* More test repairs. Fix a typo in the core mailman.cfg file.Barry Warsaw2009-01-012-2/+9
|
* More test repairs.Barry Warsaw2008-12-312-23/+22
| | | | | | | * 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-292-13/+32
| | | | | | | 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.
* Lots of changes to make bin/withlist work under a buildout environment.Barry Warsaw2008-12-202-5/+5
| | | | | | | | | | mailman.configuration -> mailman.config.config mailman.initialize -> mailma.core.initialize mailman.loginit -> mailman.core.logging (yay future absolute imports!) Convert all configurations to lazr.config, though some legacy still remains, and I haven't been able to remove Defaults.py yet. Added as_boolean() and as_log_level() helpers for explicit type conversion. Added a schema.cfg.
* Changed bin/arch to attempt to open the mbox before wiping the old archive.Mark Sapiro2008-10-171-8/+9
| | | | Launchpad bug #280418.
* Added digest.mbox and pending.pck to the 'list' files checked by check_perms.Mark Sapiro2008-10-171-0/+1
| | | | Launchpad bug #284802.
* The future is now.Barry Warsaw2008-10-1711-22/+0
|
* More clean up.Barry Warsaw2008-09-291-2/+2
| | | | | | - Remove Utils.reap() - Flesh out interfaces. - PEP 8 names.
* mailman.Errors -> mailman.core.errorsBarry Warsaw2008-09-2613-202/+22
|
* Upgrade to GPLv3.Barry Warsaw2008-09-2444-528/+528
|
* Collect the initialization of adapters into a separate method.Barry Warsaw2008-09-231-1/+2
| | | | Flesh out the join method.
* Merge in command refactoring branch.Barry Warsaw2008-08-121-0/+6
|\ | | | | | | | | | | Begin to flesh out the tests for the join command. Refactor out notifications from the add_member() function.
* | Add rough support for a local MHonArc archiver, using the permalink proposalBarry Warsaw2008-07-091-0/+4
| | | | | | | | | | | | from the prototype archiver. Add a mailman.archiver log.
* | Implement the basic Mail-Archive.com archiving algorithm.Barry Warsaw2008-07-051-2/+4
| | | | | | | | | | Fix the start up of the SMTPServer to listen on a consistent port number. post_number -> post_id
* | mailman.tests should contain only tests.Barry Warsaw2008-07-032-2/+2
|/ | | | mailman.testing should contain any support for running the tests.
* mailman.Version -> mailman.versionBarry Warsaw2008-03-3131-61/+57
|
* Add code name.Barry Warsaw2008-03-301-1/+1
|
* Make all the SMTP_LOG_* templates, PEP 292 compatible. Make them consistentlyBarry Warsaw2008-03-301-1/+4
| | | | | | | | | | | put the Message-ID first in the log message. Dict the MsgSafeDict class as unnecessary now. Fix the DEFAULT_MSG_FOOTER. Back out an earlier unnecessary change for virgin queue pipelines. Add a bunch of debugging to the mail Runner loops.
* More fixes to get end-to-end delivery basically working.Barry Warsaw2008-03-302-87/+54
| | | | | | | | | | | | | | | - Add a VirginPipeline for the virgin queue, which is mostly the same as the BuiltInPipeline, so refactor the commonality into a BasePipeline. - Simplify and update bin/dumpdb. - Rename inject() to inject_text() and add inject_message(). Both interfaces will be useful. - When enqueuing and not using _plaintext, use the highest pickle protocol supported. - Fix the archive runner's calculation of whether to clobber the message's Date: header. - Fix the outgoing queue's deliver_after calculation. - Update the virgin queue runner. It doesn't need to inherit from IncomingRunner any more; it can just execute the 'virgin' pipeline.
* More fixes to get the basic end-to-end delivery mechanisms working.Barry Warsaw2008-03-301-1/+1
| | | | | | | | | - 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-272-2/+2
| | | | | | | | | | | | | | 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.
* Lots of little patches trying to get a simple end-to-end test working. ThereBarry Warsaw2008-03-254-50/+48
| | | | | | | | | | | | should be tests for these. :/ - Disable MTA hack in remove_list() - Convert bin/inject to SingleMailingListOptions - Remove an unnecessary import - Fix qrunner restarts in bin/master - Add IMailinglist.pipeline so that this value persists - Move Runner.SLEEPTIME into the __init__() so that it isn't hurt by order of configuration initialization.
* Move AlreadySubscribedError to interfaces/member.py in the (new) preferenceBarry Warsaw2008-03-232-152/+137
| | | | | | | | for putting exceptions close to the interfaces where they are used. MakeRandomPassword() returns unicodes now. Flesh out bin/add_members.py and bin/list_members.py
* Rename rmlist to remove_list, and let it take multiple -l command lineBarry Warsaw2008-03-224-84/+89
| | | | | | arguments. Added a MultipleMailingListOptions subclass.
* Several fixes to command line scripts.Barry Warsaw2008-03-225-104/+95
| | | | | | - Add an options base class that groks unicode argument types - Rename newlist to create_list - Update list_lists, master, qrunner
* Convert bin/qrunner to use the new Options class.Barry Warsaw2008-03-211-37/+43
|
* Added a common option parsing class, and converted master to it.Barry Warsaw2008-03-211-34/+34
|
* Add some randomization to the way tests are run. This isn't complete (seeBarry Warsaw2008-03-121-4/+19
| | | | | the help for bin/testall --randomize for details), but it still better than nothing.
* Add a working (though not yet complete) test for the LMTP runner.Barry Warsaw2008-03-124-68/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Bite the bullet: rename the Mailman package to mailman.Barry Warsaw2008-02-2745-0/+7364