summaryrefslogtreecommitdiff
path: root/Mailman/app/pipelines.py
diff options
context:
space:
mode:
authorBarry Warsaw2008-02-17 23:34:09 -0500
committerBarry Warsaw2008-02-17 23:34:09 -0500
commit7ce2361faa1033bde84579ae9205944e5554b57f (patch)
tree2574ab932f57aed10cb33ef43d6f27717da07617 /Mailman/app/pipelines.py
parent69d158b13ae9cfa37040c2e7a664ca266b42050b (diff)
downloadmailman-7ce2361faa1033bde84579ae9205944e5554b57f.tar.gz
mailman-7ce2361faa1033bde84579ae9205944e5554b57f.tar.zst
mailman-7ce2361faa1033bde84579ae9205944e5554b57f.zip
Diffstat (limited to 'Mailman/app/pipelines.py')
-rw-r--r--Mailman/app/pipelines.py21
1 files changed, 12 insertions, 9 deletions
diff --git a/Mailman/app/pipelines.py b/Mailman/app/pipelines.py
index 20cc37b3a..7073835ce 100644
--- a/Mailman/app/pipelines.py
+++ b/Mailman/app/pipelines.py
@@ -57,26 +57,26 @@ class BuiltInPipeline:
description = _('The built-in pipeline.')
_default_handlers = (
- 'mimedel',
+ 'mime-delete',
'scrubber',
'tagger',
'calculate-recipients',
'avoid-duplicates',
'cleanse',
- 'cleanse_dkim',
- 'cook_headers',
- 'to_digest',
- 'to_archive',
- 'to_usenet',
- 'after_delivery',
+ 'cleanse-dkim',
+ 'cook-headers',
+ 'to-digest',
+ 'to-archive',
+ 'to-usenet',
+ 'after-delivery',
'acknowledge',
- 'to_outgoing',
+ 'to-outgoing',
)
def __init__(self):
self._handlers = []
for handler_name in self._default_handlers:
- self._handler.append(config.handlers[handler_name])
+ self._handlers.append(config.handlers[handler_name])
def __iter__(self):
"""See `IPipeline`."""
@@ -96,3 +96,6 @@ def initialize():
'Duplicate handler "%s" found in %s' %
(handler.name, handler_finder))
config.handlers[handler.name] = handler
+ # Set up some pipelines.
+ pipeline = BuiltInPipeline()
+ config.pipelines[pipeline.name] = pipeline