From 4f53b8839234c367ccc7403e60b7bd710df1b4d2 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Wed, 10 Nov 1999 17:52:05 +0000 Subject: New pipeline delivery module """Add the message to the archives.""" --- Mailman/Handlers/ToArchive.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Mailman/Handlers/ToArchive.py diff --git a/Mailman/Handlers/ToArchive.py b/Mailman/Handlers/ToArchive.py new file mode 100644 index 000000000..321258a1e --- /dev/null +++ b/Mailman/Handlers/ToArchive.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. + +"""Add the message to the archives.""" + +from Mailman import mm_cfg + + + +def process(mlist, msg): + # short circuits + if getattr(msg, 'isdigest', 0): + return + # TBD: this needs to be converted to the new pipeline machinery + mlist.ArchiveMail(msg) -- cgit v1.3.1