Use my lazr.config megamerge branch for now, even though it's still under
[mailman.git] / mailman / queue / pipeline.py
blob4d4be779071580038d9ece80e3199b546bd87b3c
1 # Copyright (C) 2008 by the Free Software Foundation, Inc.
3 # This file is part of GNU Mailman.
5 # GNU Mailman is free software: you can redistribute it and/or modify it under
6 # the terms of the GNU General Public License as published by the Free
7 # Software Foundation, either version 3 of the License, or (at your option)
8 # any later version.
10 # GNU Mailman is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 # more details.
15 # You should have received a copy of the GNU General Public License along with
16 # GNU Mailman. If not, see <http://www.gnu.org/licenses/>.
18 """The pipeline queue runner.
20 This runner's purpose is to take messages that have been approved for posting
21 through the 'preparation pipeline'. This pipeline adds, deletes and modifies
22 headers, calculates message recipients, and more.
23 """
25 from mailman.app.pipelines import process
26 from mailman.config import config
27 from mailman.queue import Runner
31 class PipelineRunner(Runner):
32 QDIR = config.PIPELINEQUEUE_DIR
34 def _dispose(self, mlist, msg, msgdata):
35 # Process the message through the mailing list's pipeline.
36 process(mlist, msg, msgdata, mlist.pipeline)
37 # Do not keep this message queued.
38 return False