summaryrefslogtreecommitdiff
path: root/Mailman/Bouncers/Postfix.py
diff options
context:
space:
mode:
authortkikuchi2006-03-07 12:43:13 +0000
committertkikuchi2006-03-07 12:43:13 +0000
commitb012e026bd55fd6c2d629789fb6f4c5893142f2b (patch)
tree89d34464c589f766eeee4b3a7d3b322cb9fb98ef /Mailman/Bouncers/Postfix.py
parent2dfa8367df0c34d3c4ba779d0911e8f50d631bce (diff)
downloadmailman-b012e026bd55fd6c2d629789fb6f4c5893142f2b.tar.gz
mailman-b012e026bd55fd6c2d629789fb6f4c5893142f2b.tar.zst
mailman-b012e026bd55fd6c2d629789fb6f4c5893142f2b.zip
Diffstat (limited to 'Mailman/Bouncers/Postfix.py')
-rw-r--r--Mailman/Bouncers/Postfix.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/Bouncers/Postfix.py b/Mailman/Bouncers/Postfix.py
index 1fab8666f..1d5e638f3 100644
--- a/Mailman/Bouncers/Postfix.py
+++ b/Mailman/Bouncers/Postfix.py
@@ -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)