aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Bouncers/Microsoft.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/Microsoft.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 '')
-rw-r--r--Mailman/Bouncers/Microsoft.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/Bouncers/Microsoft.py b/Mailman/Bouncers/Microsoft.py
index d8a90b24..fec7cc93 100644
--- a/Mailman/Bouncers/Microsoft.py
+++ b/Mailman/Bouncers/Microsoft.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
@@ -25,7 +25,7 @@ scre = re.compile(r'transcript of session follows', re.IGNORECASE)
def process(msg):
- if msg.get_type() <> 'multipart/mixed':
+ if msg.get_content_type() <> 'multipart/mixed':
return None
# Find the first subpart, which has no MIME type
try: