Use my lazr.config megamerge branch for now, even though it's still under
[mailman.git] / mailman / queue / virgin.py
blob917d702ca81e6f3acf50797a69a726e6b814ea4f
1 # Copyright (C) 1998-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 """Virgin message queue runner.
20 This qrunner handles messages that the Mailman system gives virgin birth to.
21 E.g. acknowledgement responses to user posts or Replybot messages. They need
22 to go through some minimal processing before they can be sent out to the
23 recipient.
24 """
26 from mailman.app.pipelines import process
27 from mailman.config import config
28 from mailman.queue import Runner
32 class VirginRunner(Runner):
33 QDIR = config.VIRGINQUEUE_DIR
35 def _dispose(self, mlist, msg, msgdata):
36 # We need to fast track this message through any pipeline handlers
37 # that touch it, e.g. especially cook-headers.
38 msgdata['_fasttrack'] = True
39 # Use the 'virgin' pipeline.
40 process(mlist, msg, msgdata, 'virgin')
41 # Do not keep this message queued.
42 return False