~launchpad-pqm/mailman/2.1

« back to all changes in this revision

Viewing changes to Mailman/Bouncers/Netscape.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2009-10-21 01:06:17 UTC
  • mfrom: (975.1.1 mailman.2112)
  • Revision ID: launchpad@pqm.canonical.com-20091021010617-prbs2ay6nhxx515v
[rs=flacoste] Upgrade Mailman to upstream 2.1.12

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc.
 
1
# Copyright (C) 1998-2008 by the Free Software Foundation, Inc.
2
2
#
3
3
# This program is free software; you can redistribute it and/or
4
4
# modify it under the terms of the GNU General Public License
61
61
    leaves = []
62
62
    flatten(msg, leaves)
63
63
    for i, subpart in zip(range(len(leaves)-1), leaves):
64
 
        if subpart.get_type() == 'text/plain':
 
64
        if subpart.get_content_type() == 'text/plain':
65
65
            plainmsg = subpart
66
66
            break
67
67
    if not plainmsg: