summaryrefslogtreecommitdiff
path: root/Mailman/Defaults.py
diff options
context:
space:
mode:
authorBarry Warsaw2008-02-17 17:34:21 -0500
committerBarry Warsaw2008-02-17 17:34:21 -0500
commit69d158b13ae9cfa37040c2e7a664ca266b42050b (patch)
tree07f48ee990b6bab514f86199eaa250a04280120c /Mailman/Defaults.py
parentb36de8a6a5b84021c003b728274f7e9e95861c9d (diff)
downloadmailman-69d158b13ae9cfa37040c2e7a664ca266b42050b.tar.gz
mailman-69d158b13ae9cfa37040c2e7a664ca266b42050b.tar.zst
mailman-69d158b13ae9cfa37040c2e7a664ca266b42050b.zip
Reorganize the Handler architecture to a pipeline architecture with plugins.
Now plugins can define additional handlers and the handlers can be organized into named pipelines. Modules are no longer the unit of a handler, now we use classes so we can assert interface conformance. The GLOBAL_PIPELINE is gone, replaced by the 'built-in' pipeline. The OWNER_PIPELINE is not yet replaced. I still need a few more tests of the basic pipeline architecture, although the individual handlers have pretty good coverage. Added the IHandler and IPipeline interfaces. Still broken, but not yet removed: Mailman/pipeline/moderate.py.
Diffstat (limited to 'Mailman/Defaults.py')
-rw-r--r--Mailman/Defaults.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/Mailman/Defaults.py b/Mailman/Defaults.py
index d9d1ea717..aab290d26 100644
--- a/Mailman/Defaults.py
+++ b/Mailman/Defaults.py
@@ -488,38 +488,6 @@ NNTP_REWRITE_DUPLICATE_HEADERS = [
# may wish to remove these headers by setting this to Yes.
REMOVE_DKIM_HEADERS = No
-# All `normal' messages which are delivered to the entire list membership go
-# through this pipeline of handler modules. Lists themselves can override the
-# global pipeline by defining a `pipeline' attribute.
-GLOBAL_PIPELINE = [
- # These are the modules that do tasks common to all delivery paths.
- 'SpamDetect',
- 'Approve',
- 'Replybot',
- 'Moderate',
- 'Hold',
- 'MimeDel',
- 'Scrubber',
- 'Emergency',
- 'Tagger',
- 'CalcRecips',
- 'AvoidDuplicates',
- 'Cleanse',
- 'CleanseDKIM',
- 'CookHeaders',
- # And now we send the message to the digest mbox file, and to the arch and
- # news queues. Runners will provide further processing of the message,
- # specific to those delivery paths.
- 'ToDigest',
- 'ToArchive',
- 'ToUsenet',
- # Now we'll do a few extra things specific to the member delivery
- # (outgoing) path, finally leaving the message in the outgoing queue.
- 'AfterDelivery',
- 'Acknowledge',
- 'ToOutgoing',
- ]
-
# This is the pipeline which messages sent to the -owner address go through
OWNER_PIPELINE = [
'SpamDetect',