From bec2d8e2c6b288ad6d75113657e360acbb6be149 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Wed, 10 Nov 1999 17:48:53 +0000 Subject: New pipeline delivery module """Perform some bookkeeping after a successful post. This module must appear after the delivery module in the message pipeline. """ --- Mailman/Handlers/AfterDelivery.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Mailman/Handlers/AfterDelivery.py diff --git a/Mailman/Handlers/AfterDelivery.py b/Mailman/Handlers/AfterDelivery.py new file mode 100644 index 000000000..9d368aa05 --- /dev/null +++ b/Mailman/Handlers/AfterDelivery.py @@ -0,0 +1,28 @@ +# Copyright (C) 1998 by the Free Software Foundation, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +"""Perform some bookkeeping after a successful post. + +This module must appear after the delivery module in the message pipeline. +""" + +import time + + + +def process(mlist, msg): + mlist.last_post_time = time.time() + mlist.post_id = mlist.post_id + 1 -- cgit v1.3.1