aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Bouncers/GroupWise.py
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2008-11-30 20:30:43 -0800
committerMark Sapiro <mark@msapiro.net>2008-11-30 20:30:43 -0800
commitf579d5c290b80e00974e8c034f9d6dd697fcdfa6 (patch)
tree7ad0054577c7e457a94ecec5cd55d0003c2c2f08 /Mailman/Bouncers/GroupWise.py
parent0e6f7c1fc99eb7e35c23695bca2c17e757baf514 (diff)
downloadmailman2-f579d5c290b80e00974e8c034f9d6dd697fcdfa6.tar.gz
mailman2-f579d5c290b80e00974e8c034f9d6dd697fcdfa6.tar.xz
mailman2-f579d5c290b80e00974e8c034f9d6dd697fcdfa6.zip
Now that Python 2.4 is the minimum and we will use more recent installed
email packages, convert all the email message get_type() calls to get_content_type().
Diffstat (limited to 'Mailman/Bouncers/GroupWise.py')
-rw-r--r--Mailman/Bouncers/GroupWise.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/Bouncers/GroupWise.py b/Mailman/Bouncers/GroupWise.py
index 74116135..e5122f73 100644
--- a/Mailman/Bouncers/GroupWise.py
+++ b/Mailman/Bouncers/GroupWise.py
@@ -30,7 +30,7 @@ acre = re.compile(r'<(?P<addr>[^>]*)>')
def find_textplain(msg):
- if msg.get_type(msg.get_default_type()) == 'text/plain':
+ if msg.get_content_type() == 'text/plain':
return msg
if msg.is_multipart:
for part in msg.get_payload():
@@ -44,7 +44,7 @@ def find_textplain(msg):
def process(msg):
- if msg.get_type() <> 'multipart/mixed' or not msg['x-mailer']:
+ if msg.get_content_type() <> 'multipart/mixed' or not msg['x-mailer']:
return None
if msg['x-mailer'][:3].lower() not in ('nov', 'ntm', 'int'):
return None