aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Bouncers/Postfix.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@list.org>2008-12-01 23:25:33 -0500
committerBarry Warsaw <barry@list.org>2008-12-01 23:25:33 -0500
commit2da8819928e6b010eb6c9d34c71a4f9f0287af9b (patch)
tree7ad0054577c7e457a94ecec5cd55d0003c2c2f08 /Mailman/Bouncers/Postfix.py
parent0e6f7c1fc99eb7e35c23695bca2c17e757baf514 (diff)
parentf579d5c290b80e00974e8c034f9d6dd697fcdfa6 (diff)
downloadmailman2-2da8819928e6b010eb6c9d34c71a4f9f0287af9b.tar.gz
mailman2-2da8819928e6b010eb6c9d34c71a4f9f0287af9b.tar.xz
mailman2-2da8819928e6b010eb6c9d34c71a4f9f0287af9b.zip
Merge Mark's changes to complete the Python 2.6 compatibility.
Diffstat (limited to 'Mailman/Bouncers/Postfix.py')
-rw-r--r--Mailman/Bouncers/Postfix.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/Bouncers/Postfix.py b/Mailman/Bouncers/Postfix.py
index 1fab8666..3c250e95 100644
--- a/Mailman/Bouncers/Postfix.py
+++ b/Mailman/Bouncers/Postfix.py
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2003 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
@@ -71,14 +71,14 @@ def findaddr(msg):
def process(msg):
- if msg.get_type() not in ('multipart/mixed', 'multipart/report'):
+ if msg.get_content_type() not in ('multipart/mixed', 'multipart/report'):
return None
# We're looking for the plain/text subpart with a Content-Description: of
# `notification'.
leaves = []
flatten(msg, leaves)
for subpart in leaves:
- if subpart.get_type() == 'text/plain' and \
+ if subpart.get_content_type() == 'text/plain' and \
subpart.get('content-description', '').lower() == 'notification':
# then...
return findaddr(subpart)