diff options
| author | bwarsaw | 1999-11-10 17:48:53 +0000 |
|---|---|---|
| committer | bwarsaw | 1999-11-10 17:48:53 +0000 |
| commit | bec2d8e2c6b288ad6d75113657e360acbb6be149 (patch) | |
| tree | e99972d57f732fcc496a0a2b128c482ff26d3472 | |
| parent | 948272384b4694a4b8210ac4377b9980286555d4 (diff) | |
| download | mailman-bec2d8e2c6b288ad6d75113657e360acbb6be149.tar.gz mailman-bec2d8e2c6b288ad6d75113657e360acbb6be149.tar.zst mailman-bec2d8e2c6b288ad6d75113657e360acbb6be149.zip | |
| -rw-r--r-- | Mailman/Handlers/AfterDelivery.py | 28 |
1 files changed, 28 insertions, 0 deletions
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 |
