summaryrefslogtreecommitdiff
path: root/src/mailman/runners/pipeline.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-03-23 00:46:57 -0400
committerBarry Warsaw2012-03-23 00:46:57 -0400
commit5e0bfbfec4cddcce6f170944b2a6d33866612add (patch)
tree8b6882bf7ae664117f9b66ccc175a487e6cb00a4 /src/mailman/runners/pipeline.py
parent3e8f20cd4d543bdbd575b9c61748e4a815f5e0ea (diff)
downloadmailman-5e0bfbfec4cddcce6f170944b2a6d33866612add.tar.gz
mailman-5e0bfbfec4cddcce6f170944b2a6d33866612add.tar.zst
mailman-5e0bfbfec4cddcce6f170944b2a6d33866612add.zip
Diffstat (limited to 'src/mailman/runners/pipeline.py')
-rw-r--r--src/mailman/runners/pipeline.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mailman/runners/pipeline.py b/src/mailman/runners/pipeline.py
index 8bee2c4cb..b031662b3 100644
--- a/src/mailman/runners/pipeline.py
+++ b/src/mailman/runners/pipeline.py
@@ -30,6 +30,9 @@ from mailman.core.runner import Runner
class PipelineRunner(Runner):
def _dispose(self, mlist, msg, msgdata):
# Process the message through the mailing list's pipeline.
- process(mlist, msg, msgdata, mlist.posting_pipeline)
+ pipeline = (mlist.owner_pipeline
+ if msgdata.get('to_owner', False)
+ else mlist.posting_pipeline)
+ process(mlist, msg, msgdata, pipeline)
# Do not keep this message queued.
return False