diff options
| author | msapiro | 2006-03-06 18:14:58 +0000 |
|---|---|---|
| committer | msapiro | 2006-03-06 18:14:58 +0000 |
| commit | 187a92d7c5e18fb992f5a951075d4053519016c3 (patch) | |
| tree | f2f1e6793c654adc529b9fdf124a07e137bd5abc /Mailman/Bouncers/SimpleWarning.py | |
| parent | d505e21bc2ead60d051c621f6fa4dd6cd741634a (diff) | |
| download | mailman-187a92d7c5e18fb992f5a951075d4053519016c3.tar.gz mailman-187a92d7c5e18fb992f5a951075d4053519016c3.tar.zst mailman-187a92d7c5e18fb992f5a951075d4053519016c3.zip | |
Diffstat (limited to 'Mailman/Bouncers/SimpleWarning.py')
| -rw-r--r-- | Mailman/Bouncers/SimpleWarning.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Mailman/Bouncers/SimpleWarning.py b/Mailman/Bouncers/SimpleWarning.py index eefd46a5a..733994eb6 100644 --- a/Mailman/Bouncers/SimpleWarning.py +++ b/Mailman/Bouncers/SimpleWarning.py @@ -1,4 +1,4 @@ -# Copyright (C) 2001,2002 by the Free Software Foundation, Inc. +# Copyright (C) 2001-2006 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 @@ -12,10 +12,12 @@ # # 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, +# USA. """Recognizes simple heuristically delimited warnings.""" +from Mailman.Bouncers.BouncerAPI import Stop from Mailman.Bouncers.SimpleMatch import _c from Mailman.Bouncers.SimpleMatch import process as _process @@ -41,4 +43,8 @@ patterns = [ def process(msg): - return _process(msg, patterns) + if _process(msg, patterns): + # It's a recognized warning so stop now + return Stop + else: + return [] |
