diff options
author | Mark Sapiro <mark@msapiro.net> | 2008-06-15 12:39:31 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2008-06-15 12:39:31 -0700 |
commit | f0562e55bb47dd29a832bb8d6b6fed8d0555138c (patch) | |
tree | ba1f0a579043ec4221f75a2c3daf78336232a2a1 /Mailman/Bouncers/GroupWise.py | |
parent | bb2624102c8d3c63b6b3e8b56f88fb1507ead034 (diff) | |
download | mailman2-f0562e55bb47dd29a832bb8d6b6fed8d0555138c.tar.gz mailman2-f0562e55bb47dd29a832bb8d6b6fed8d0555138c.tar.xz mailman2-f0562e55bb47dd29a832bb8d6b6fed8d0555138c.zip |
Made several improvements to bounce recognition.
Diffstat (limited to '')
-rw-r--r-- | Mailman/Bouncers/GroupWise.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Mailman/Bouncers/GroupWise.py b/Mailman/Bouncers/GroupWise.py index 7ef31256..74116135 100644 --- a/Mailman/Bouncers/GroupWise.py +++ b/Mailman/Bouncers/GroupWise.py @@ -1,4 +1,4 @@ -# Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2008 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 @@ -46,6 +46,8 @@ def find_textplain(msg): def process(msg): if msg.get_type() <> 'multipart/mixed' or not msg['x-mailer']: return None + if msg['x-mailer'][:3].lower() not in ('nov', 'ntm', 'int'): + return None addrs = {} # find the first text/plain part in the message textplain = find_textplain(msg) |