------------------------------------------------------------ revno: 6586 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: 3.0 timestamp: Sat 2008-02-02 23:03:19 -0500 message: Merge the 'rules' branch. Give the first alpha a code name. This branch mostly gets rid of all the approval oriented handlers in favor of a chain-of-rules based approach. This will be much more powerful and extensible, allowing rule definition by plugin and chain creation via web page. When a message is processed by the incoming queue, it gets sent through a chain of rules. The starting chain is defined on the mailing list object, and there is a built-in default starting chain, called 'built-in'. Each chain is made up of links, which describe a rule and an action, along with possibly some other information. Actions allow processing to take a detour through another chain, jump to another chain, stop processing, run a function, etc. The built-in chain essentially implements the original early part of the handler pipeline. If a message makes it through the built-in chain, it gets sent to the prep queue, where the message is decorated and such before sending out to the list membership. The 'accept' chain is what moves the message into the prep queue. There are also 'hold', 'discard', and 'reject' chains, which do what you would expect them to. There are lots of built-in rules, implementing everything from the old emergency handler to new handlers such as one not allowing empty subject headers. IMember grows an is_moderated attribute. The 'adminapproved' metadata key is renamed 'moderator_approved'. Fix some bogus uses of noreply_address to no_reply_address. Stash an 'original_size' attribute on the message after parsing its plain text. This can be used later to ensure the original message does not exceed a specified size without have to flatten the message again. The KNOWN_SPAMMERS global variable is replaced with HEADER_MATCHES. The mailing list's header_filter_rules variable is replaced with header_matches which has the same semantics as HEADER_MATCHES, but is list-specific. DEFAULT_MAIL_COMMANDS_MAX_LINES -> EMAIL_COMMANDS_MAX_LINES. Update smtplistener.py to be much better, to use maildir format instead of mbox format, to respond to RSET commands by clearing the maildir, and by silencing annoying asyncore error messages. Extend the doctest runner so that it will run .txt files in any docs subdirectory in the code tree. Add plugable keys 'mailman.mta' and 'mailman.rules'. The latter may have only one setting while the former is extensible. There are lots of doctests which should give all the gory details. Mailman/Post.py -> Mailman/inject.py and the command line usage of this module is removed. SQLALCHEMY_ECHO, which was unused, is removed. Backport the ability to specify additional footer interpolation variables by the message metadata 'decoration-data' key. can_acknowledge() defines whether a message can be responded to by the email robot. Simplify the implementation of _reset() based on Storm fixes. Be able to handle lists in Storm values. Do some reorganization. removed: Mailman/Handlers/Approve.py Mailman/Handlers/Emergency.py Mailman/Handlers/Hold.py Mailman/Handlers/SpamDetect.py Mailman/docs/antispam.txt Mailman/docs/hold.txt Mailman/queue/tests/ Mailman/queue/tests/__init__.py added: Mailman/app/chains.py Mailman/app/rules.py Mailman/chains/ Mailman/chains/__init__.py Mailman/chains/accept.py Mailman/chains/base.py Mailman/chains/builtin.py Mailman/chains/discard.py Mailman/chains/headers.py Mailman/chains/hold.py Mailman/chains/reject.py Mailman/docs/chains.txt Mailman/interfaces/chain.py Mailman/interfaces/rules.py Mailman/queue/docs/ Mailman/queue/docs/OVERVIEW.txt Mailman/queue/docs/incoming.txt Mailman/rules/ Mailman/rules/__init__.py Mailman/rules/administrivia.py Mailman/rules/any.py Mailman/rules/approved.py Mailman/rules/docs/ Mailman/rules/docs/administrivia.txt Mailman/rules/docs/emergency.txt Mailman/rules/docs/header-matching.txt Mailman/rules/docs/implicit-dest.txt Mailman/rules/docs/loop.txt Mailman/rules/docs/max-size.txt Mailman/rules/docs/moderation.txt Mailman/rules/docs/news-moderation.txt Mailman/rules/docs/no-subject.txt Mailman/rules/docs/recipients.txt Mailman/rules/docs/rules.txt Mailman/rules/docs/suspicious.txt Mailman/rules/docs/truth.txt Mailman/rules/emergency.py Mailman/rules/implicit_dest.py Mailman/rules/loop.py Mailman/rules/max_recipients.py Mailman/rules/max_size.py Mailman/rules/moderation.py Mailman/rules/news_moderation.py Mailman/rules/no_subject.py Mailman/rules/suspicious.py Mailman/rules/truth.py Mailman/tests/helpers.py renamed: Mailman/Post.py => Mailman/inject.py Mailman/docs/approve.txt => Mailman/rules/docs/approve.txt Mailman/docs/news-runner.txt => Mailman/queue/docs/news.txt Mailman/docs/outgoing.txt => Mailman/queue/docs/outgoing.txt Mailman/docs/runner.txt => Mailman/queue/docs/runner.txt Mailman/docs/switchboard.txt => Mailman/queue/docs/switchboard.txt modified: Mailman/Defaults.py Mailman/Handlers/Decorate.py Mailman/Message.py Mailman/Utils.py Mailman/app/bounces.py Mailman/app/moderator.py Mailman/app/replybot.py Mailman/app/styles.py Mailman/bin/inject.py Mailman/configuration.py Mailman/database/mailinglist.py Mailman/database/mailman.sql Mailman/database/member.py Mailman/database/model.py Mailman/database/pending.py Mailman/docs/mlist-addresses.txt Mailman/docs/requests.txt Mailman/initialize.py Mailman/interfaces/__init__.py Mailman/interfaces/mailinglist.py Mailman/interfaces/member.py Mailman/queue/__init__.py Mailman/queue/command.py Mailman/queue/incoming.py Mailman/templates/en/__init__.py* Mailman/templates/en/postauth.txt Mailman/tests/bounces/__init__.py* Mailman/tests/smtplistener.py Mailman/tests/test_documentation.py docs/NEWS.txt setup.py Mailman/inject.py Mailman/rules/docs/approve.txt ------------------------------------------------------------ revno: 6581.1.27 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Sat 2008-02-02 13:47:23 -0500 message: Fleshed out the doctest for the new incoming queue runner. Added a Mailman.tests.helpers module for some commonly used stuff (although test refactoring hasn't yet happened). Give Mailman 3.0a1 a code name. added: Mailman/tests/helpers.py modified: Mailman/queue/docs/incoming.txt docs/NEWS.txt ------------------------------------------------------------ revno: 6581.1.26 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Sat 2008-02-02 11:18:22 -0500 message: Convert IncomingRunner to use the new chains disposition architecture. move the big explanatory text at the beginning of incoming.py to a doctest called OVERVIEW.tt (which doesn't actually contain any tests yet -- it's documentation though). Added a doctest for the incoming runner, though this will be fleshed out in more detail next. Mailman.Post renamed to Mailman.inject, and simplified. We don't need its command line script behavior because that is now handled by bin/inject. Add a 'start_chain' attribute to mailing lists. This names the chain that processing of messages for that list begins with. We were inconsistent in the use of the 'no reply' address attribute. It's now always 'no_reply_address'. Update the smtplistener helper with lessons learned about how to suppress bogus asyncore error messages. Also, switch to using a maildir mailbox instead of an mbox mailbox. removed: Mailman/queue/tests/ Mailman/queue/tests/__init__.py added: Mailman/queue/docs/ Mailman/queue/docs/OVERVIEW.txt Mailman/queue/docs/incoming.txt renamed: Mailman/Post.py => Mailman/inject.py Mailman/docs/news-runner.txt => Mailman/queue/docs/news.txt Mailman/docs/outgoing.txt => Mailman/queue/docs/outgoing.txt Mailman/docs/runner.txt => Mailman/queue/docs/runner.txt Mailman/docs/switchboard.txt => Mailman/queue/docs/switchboard.txt modified: Mailman/app/styles.py Mailman/bin/inject.py Mailman/database/mailinglist.py Mailman/database/mailman.sql Mailman/docs/mlist-addresses.txt Mailman/interfaces/mailinglist.py Mailman/queue/incoming.py Mailman/tests/smtplistener.py Mailman/inject.py ------------------------------------------------------------ revno: 6581.1.25 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Fri 2008-02-01 22:25:10 -0500 message: Bye bye Hold handler. removed: Mailman/Handlers/Hold.py ------------------------------------------------------------ revno: 6581.1.24 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Fri 2008-02-01 22:21:05 -0500 message: SpamDetect is gone, so the chains/rules implementation experiment is deemed a success and will now be merged into the trunk. Move the Truth rule into the built-in rules package in a separate module, and add a test. Modify IChainLink so that the rule and chain attributes are not names but indeed the actual ILink or IChain object directly. Update the chains.process() function accordingly. Remove the IChain.get_rule() method. Don't derive BuiltInChain from Chain and don't make it an IMutableChain. It's now just an IChain, and is implemented concretely. Refactor the HeaderMatchChain and friends so that it can be used with both the global HEADER_MATCHES variable and the list-specific header_matches variable, which has exactly the same semantics. Oh yeah, get rid of the list's header_filter_rules attribute and replace it with header_matches so that the semantics match, it's easy to explain, and it's all nice and clean. removed: Mailman/Handlers/SpamDetect.py added: Mailman/rules/docs/truth.txt Mailman/rules/truth.py modified: Mailman/app/chains.py Mailman/app/rules.py Mailman/app/styles.py Mailman/chains/base.py Mailman/chains/builtin.py Mailman/chains/headers.py Mailman/database/mailinglist.py Mailman/database/mailman.sql Mailman/docs/chains.txt Mailman/interfaces/chain.py Mailman/rules/docs/header-matching.txt ------------------------------------------------------------ revno: 6581.1.23 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Wed 2008-01-30 23:58:52 -0500 message: Reorganization. Create a Mailman.chains package and move a bunch of the Mailman.apps.chains classes to separate modules under this package. Also, separate out iteration from chain management. In other words, IChain and IChainIterator are separate, and the latter is retrieved from the former by the .get_links() method. This latter takes the mailing list, message, and metadata dictionary so that links can be targetted specifically to the task at hand. added: Mailman/chains/accept.py Mailman/chains/base.py Mailman/chains/builtin.py Mailman/chains/discard.py Mailman/chains/headers.py Mailman/chains/hold.py Mailman/chains/reject.py modified: Mailman/app/chains.py Mailman/interfaces/chain.py ------------------------------------------------------------ revno: 6581.1.22 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Sun 2008-01-27 20:16:16 -0500 message: Reorganization. Create a Mailman.chains package and move a bunch of the Mailman.apps.chains classes to separate modules under this package. added: Mailman/chains/ Mailman/chains/__init__.py modified: Mailman/app/chains.py ------------------------------------------------------------ revno: 6581.1.21 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Sat 2008-01-26 18:52:01 -0500 message: Remove an unused variable. modified: Mailman/Defaults.py ------------------------------------------------------------ revno: 6581.1.20 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Sat 2008-01-26 18:35:18 -0500 message: Port header matching previously described by the misnamed KNONW_SPAMMERS variable to the new chain processing system. Create a header-matching chain which handles global site header matching rules defined by HEADER_MATCHES. Rip this logic out of the SpamDetect handler; really this entire handler needs to go away but the rest of it isn't ported yet. IChains now have a get_rule() method which allows them to return private (i.e. not globally registered) rules. This is used by the header matching chain. Mailman.app.chains.process() has had its parameter list reordered to be more like all other function signatures that take a mailing list, message, and message metadata. removed: Mailman/docs/antispam.txt added: Mailman/rules/docs/header-matching.txt modified: Mailman/Defaults.py Mailman/Handlers/SpamDetect.py Mailman/app/chains.py Mailman/docs/chains.txt Mailman/interfaces/chain.py Mailman/rules/docs/emergency.txt Mailman/tests/test_documentation.py ------------------------------------------------------------ revno: 6581.1.19 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Wed 2008-01-23 23:47:50 -0500 message: More changes to rules and chains. Now a link has a rule, action, chain, and function, not all of which needs to be specified. The action is a LinkAction enum adn specifies what to do should the rule match. The use of the chain or function depends on what the action is. Several interface changes now make it easier to jump to other chains, push (i.e. detour) to chains, etc. Rules can also now specify that they should not be recorded in X-* headers. Added a TruthRule which always matches. modified: Mailman/app/chains.py Mailman/app/rules.py Mailman/docs/chains.txt Mailman/interfaces/chain.py Mailman/interfaces/rules.py Mailman/rules/administrivia.py Mailman/rules/any.py Mailman/rules/approved.py Mailman/rules/docs/emergency.txt Mailman/rules/docs/rules.txt Mailman/rules/emergency.py Mailman/rules/implicit_dest.py Mailman/rules/loop.py Mailman/rules/max_recipients.py Mailman/rules/max_size.py Mailman/rules/moderation.py Mailman/rules/news_moderation.py Mailman/rules/no_subject.py Mailman/rules/suspicious.py ------------------------------------------------------------ revno: 6581.1.18 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Mon 2008-01-21 00:26:55 -0500 message: More updates to rules and chains, especially by adding additional tests. - Remove the Emergency.py handler. This is now covered by the emergency.py rule. - Remove the hold.txt doctest. This is now covered by the chains.txt and emergency.txt doctests. - Added a chains.txt doctest. - Extend the pending db to handle list values, although only lists that contain nothing but strings. - Rename the 'adminapproved' message metadata key (for the emergency rule) to 'moderator_approved'. Also, backport a change to the Decorate handler where message metadata on the 'decoration-data' key ca be used in the header and footer. removed: Mailman/Handlers/Emergency.py Mailman/docs/hold.txt added: Mailman/docs/chains.txt Mailman/rules/docs/emergency.txt modified: Mailman/Handlers/Decorate.py Mailman/app/chains.py Mailman/app/moderator.py Mailman/app/replybot.py Mailman/app/rules.py Mailman/database/pending.py Mailman/docs/requests.txt Mailman/initialize.py Mailman/rules/docs/administrivia.txt Mailman/rules/docs/approve.txt Mailman/rules/docs/implicit-dest.txt Mailman/rules/docs/loop.txt Mailman/rules/docs/max-size.txt Mailman/rules/docs/moderation.txt Mailman/rules/docs/news-moderation.txt Mailman/rules/docs/no-subject.txt Mailman/rules/docs/recipients.txt Mailman/rules/docs/rules.txt Mailman/rules/docs/suspicious.txt Mailman/rules/emergency.py ------------------------------------------------------------ revno: 6581.1.17 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Mon 2008-01-14 23:24:43 -0500 message: Merge from trunk. added: Mailman/interfaces/archiver.py modified: Mailman/Handlers/Cleanse.py Mailman/Handlers/CookHeaders.py Mailman/Handlers/Scrubber.py Mailman/app/archiving.py Mailman/docs/cook-headers.txt Mailman/docs/scrubber.txt setup.py ------------------------------------------------------------ revno: 6581.1.16 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Mon 2008-01-14 23:22:15 -0500 message: Use a more efficient way of deleting rows from a table, which coincidentally <wink> works around the storm cache bug #178546. added: Mailman/app/chains.py Mailman/interfaces/chain.py Mailman/rules/any.py modified: Mailman/app/moderator.py Mailman/app/replybot.py Mailman/app/rules.py Mailman/configuration.py Mailman/initialize.py Mailman/interfaces/rules.py Mailman/rules/__init__.py Mailman/templates/en/postauth.txt setup.py ------------------------------------------------------------ revno: 6581.1.15 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Wed 2008-01-02 16:02:19 -0500 message: Use a more efficient way of deleting rows from a table, which coincidentally <wink> works around the storm cache bug #178546. modified: Mailman/database/model.py ------------------------------------------------------------ revno: 6581.1.14 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Tue 2008-01-01 22:37:08 -0500 message: Fix the rule api once more so that while rules themselves are still classes, they are instantiated by the IRuleSet, thus keeping the promises of the interface. The ChainJump enum is moved to interfaces/chain.py. This will be fleshed out subsequently. modified: Mailman/app/rules.py Mailman/interfaces/rules.py Mailman/rules/__init__.py Mailman/rules/docs/rules.txt ------------------------------------------------------------ revno: 6581.1.13 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Tue 2008-01-01 13:49:27 -0500 message: Extended test_documentation.py to be able to find doctests in subdirectories called 'docs' anywhere under the Mailman package. Change the rule API to return rule classes not instances. Added the ChainJump enum, though this will likely change soon. added: Mailman/rules/docs/ renamed: Mailman/docs/administrivia.txt => Mailman/rules/docs/administrivia.txt Mailman/docs/approve.txt => Mailman/rules/docs/approve.txt Mailman/docs/implicit-dest.txt => Mailman/rules/docs/implicit-dest.txt Mailman/docs/loop.txt => Mailman/rules/docs/loop.txt Mailman/docs/max-size.txt => Mailman/rules/docs/max-size.txt Mailman/docs/moderation.txt => Mailman/rules/docs/moderation.txt Mailman/docs/news-moderation.txt => Mailman/rules/docs/news-moderation.txt Mailman/docs/no-subject.txt => Mailman/rules/docs/no-subject.txt Mailman/docs/recipients.txt => Mailman/rules/docs/recipients.txt Mailman/docs/rules.txt => Mailman/rules/docs/rules.txt Mailman/docs/suspicious.txt => Mailman/rules/docs/suspicious.txt Mailman/rules/new_moderation.py => Mailman/rules/news_moderation.py modified: Mailman/app/rules.py Mailman/interfaces/rules.py Mailman/rules/__init__.py Mailman/rules/administrivia.py Mailman/rules/approved.py Mailman/rules/emergency.py Mailman/rules/implicit_dest.py Mailman/rules/loop.py Mailman/rules/max_recipients.py Mailman/rules/max_size.py Mailman/rules/moderation.py Mailman/rules/no_subject.py Mailman/rules/suspicious.py Mailman/tests/test_documentation.py Mailman/rules/docs/rules.txt Mailman/rules/news_moderation.py ------------------------------------------------------------ revno: 6581.1.12 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Sun 2007-12-30 02:47:45 -0500 message: Add three new rules and their associated doctests. - A rule that checks to see if the sender is a moderated member. - A rule that checks to see if the sender is a non-member. - A rule that checks to see if the message has no (or an empty) Subject. Give IMembers (and the associated database implementation) an `is_moderated` flag. added: Mailman/docs/moderation.txt Mailman/docs/no-subject.txt Mailman/rules/moderation.py Mailman/rules/no_subject.py modified: Mailman/Message.py Mailman/database/mailman.sql Mailman/database/member.py Mailman/interfaces/member.py ------------------------------------------------------------ revno: 6581.1.11 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Sat 2007-12-29 21:02:15 -0500 message: Move the suspicious header check to a rule and add a doctest. added: Mailman/docs/suspicious.txt Mailman/rules/suspicious.py modified: Mailman/Handlers/Hold.py Mailman/app/bounces.py Mailman/docs/hold.txt ------------------------------------------------------------ revno: 6581.1.10 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Sat 2007-12-29 20:42:06 -0500 message: Add a rule and doctest for newsgroup moderation. added: Mailman/docs/news-moderation.txt Mailman/rules/new_moderation.py modified: Mailman/Handlers/Hold.py ------------------------------------------------------------ revno: 6581.1.9 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Sat 2007-12-29 19:53:23 -0500 message: Port the maximum message size check to a rule. Add doctest. Rename the implicit.txt doctest. specialized_message_from_string(): Mimic the way the text->message parser will include the size of the original text as an attribute on the message object. The maximum message size rule will use this information. added: Mailman/docs/max-size.txt Mailman/rules/max_size.py renamed: Mailman/docs/implicit.txt => Mailman/docs/implicit-dest.txt modified: Mailman/Handlers/Hold.py Mailman/docs/hold.txt Mailman/queue/__init__.py Mailman/rules/implicit_dest.py Mailman/tests/test_documentation.py Mailman/docs/implicit-dest.txt ------------------------------------------------------------ revno: 6581.1.8 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Sat 2007-12-29 17:02:46 -0500 message: Port the implicit destination checking to the rules infrastructure and add a bunch of doctests. Note that the old Hold Notification tests are temporarily disabled as these will have to be rewritten when the rule matching logic gets added. added: Mailman/docs/implicit.txt Mailman/rules/implicit_dest.py modified: Mailman/Handlers/Hold.py Mailman/app/bounces.py Mailman/docs/hold.txt Mailman/rules/max_recipients.py ------------------------------------------------------------ revno: 6581.1.7 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Sat 2007-12-29 11:39:18 -0500 message: No executable modified: Mailman/rules/__init__.py* Mailman/templates/en/__init__.py* Mailman/tests/bounces/__init__.py* ------------------------------------------------------------ revno: 6581.1.6 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Sat 2007-12-29 11:28:00 -0500 message: Convert the max-recipients check from the Hold handler to the max_recipients rule. Add doctest as appropriate. added: Mailman/docs/recipients.txt Mailman/rules/max_recipients.py modified: Mailman/Handlers/Hold.py Mailman/docs/hold.txt ------------------------------------------------------------ revno: 6581.1.5 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Sat 2007-12-29 11:15:10 -0500 message: Convert the administrivia check from the Hold handler to the administrivia rule. Add doctest as appropriate. DEFAULT_MAIL_COMMANDS_MAX_LINES -> EMAIL_COMMANDS_MAX_LINES added: Mailman/docs/administrivia.txt Mailman/rules/administrivia.py modified: Mailman/Defaults.py Mailman/Handlers/Hold.py Mailman/Utils.py Mailman/docs/hold.txt Mailman/queue/command.py ------------------------------------------------------------ revno: 6581.1.4 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Sat 2007-12-29 01:31:12 -0500 message: Add a rule to search for posting loops. added: Mailman/docs/loop.txt Mailman/rules/loop.py modified: Mailman/rules/approved.py Mailman/rules/emergency.py ------------------------------------------------------------ revno: 6581.1.3 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Sat 2007-12-29 01:13:38 -0500 message: Convert the Approve.py handler to an approved.py rule. Update the doctest to use the rule check instead of handler processing. Add a test for stripping the header from the text/html part to the doctest. Add Mailman.app.rules.find_rule() to return a named rule. Fix a few typos. removed: Mailman/Handlers/Approve.py added: Mailman/rules/approved.py modified: Mailman/app/rules.py Mailman/docs/approve.txt Mailman/interfaces/rules.py Mailman/rules/emergency.py ------------------------------------------------------------ revno: 6581.1.2 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Thu 2007-12-27 23:25:50 -0500 message: Change IRuleProcessor to IRuleSet. Plugins now provide only sets of rules, they do not do the actual rule processing. That's left up to Mailman. Further, the rule processor can be given a list of rules to run; those will be the only ones run. renamed: Mailman/interfaces/rule.py => Mailman/interfaces/rules.py modified: Mailman/app/rules.py Mailman/docs/rules.txt Mailman/rules/__init__.py Mailman/interfaces/rules.py ------------------------------------------------------------ revno: 6581.1.1 committer: Barry Warsaw <[EMAIL PROTECTED]> branch nick: rules timestamp: Thu 2007-12-27 23:04:08 -0500 message: First cut at a rules processor, separate from the disposition of rule hits. The basic idea is that we process rules on a mlist, message, metadata triplet making a list of all rules that hit. Then a different part of the system will decide on the disposition of a message based on which rules hit and their priority. The doctest and plugin architecture is in place, including the tie-in to setup.py. Ported the first rule -- emergency.py -- to the new rule processor. We no longer need SQLAlchemy as a requirement, and the setuptools/bzr plugin name has changed. added: Mailman/app/rules.py Mailman/docs/rules.txt Mailman/interfaces/rule.py Mailman/rules/ Mailman/rules/__init__.py Mailman/rules/emergency.py modified: .bzrignore Mailman/interfaces/__init__.py setup.py
The size of the diff (6483 lines) is larger than your specified limit of 5000 lines -- Primary development focus https://code.launchpad.net/~mailman-coders/mailman/3.0 You are receiving this branch notification because you are subscribed to it. _______________________________________________ Mailman-checkins mailing list Mailman-checkins@python.org Unsubscribe: http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org