diff options
author | bwarsaw <> | 2003-02-08 07:14:13 +0000 |
---|---|---|
committer | bwarsaw <> | 2003-02-08 07:14:13 +0000 |
commit | 925200da11d52ae4d7fc664bff898f8050bef687 (patch) | |
tree | 389bbd6c076718221b427d6d6e4fa199a1729ec0 /Mailman/Queue/IncomingRunner.py | |
parent | dea51d7d5a5c5d8ea6900a838a12e230b7a000b6 (diff) | |
download | mailman2-925200da11d52ae4d7fc664bff898f8050bef687.tar.gz mailman2-925200da11d52ae4d7fc664bff898f8050bef687.tar.xz mailman2-925200da11d52ae4d7fc664bff898f8050bef687.zip |
Backporting from the trunk.
Diffstat (limited to '')
-rw-r--r-- | Mailman/Queue/IncomingRunner.py | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/Mailman/Queue/IncomingRunner.py b/Mailman/Queue/IncomingRunner.py index 4a60ceb9..e85cc764 100644 --- a/Mailman/Queue/IncomingRunner.py +++ b/Mailman/Queue/IncomingRunner.py @@ -1,4 +1,4 @@ -# Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2003 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 @@ -126,11 +126,12 @@ class IncomingRunner(Runner): # used. Final fallback is the global pipeline. try: pipeline = self._get_pipeline(mlist, msg, msgdata) - status = self._dopipeline(mlist, msg, msgdata, pipeline) - if status: - msgdata['pipeline'] = pipeline + msgdata['pipeline'] = pipeline + more = self._dopipeline(mlist, msg, msgdata, pipeline) + if not more: + del msgdata['pipeline'] mlist.Save() - return status + return more finally: mlist.Unlock() @@ -166,5 +167,10 @@ class IncomingRunner(Runner): except Errors.RejectMessage, e: mlist.BounceMessage(msg, msgdata, e) return 0 + except: + # Push this pipeline module back on the stack, then re-raise + # the exception. + pipeline.insert(0, handler) + raise # We've successfully completed handling of this message return 0 |