~launchpad-pqm/mailman/2.1

« back to all changes in this revision

Viewing changes to Mailman/MTA/Postfix.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) 2001-2005 by the Free Software Foundation, Inc.
 
1
# Copyright (C) 2001-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
256
256
        filteroutp = False
257
257
        start = '# STANZA START: ' + listname
258
258
        end = '# STANZA END: ' + listname
 
259
        oops = '# STANZA START: '
259
260
        while 1:
260
261
            line = infp.readline()
261
262
            if not line:
270
271
                    # Discard the trailing blank line, but don't worry if
271
272
                    # we're at the end of the file.
272
273
                    infp.readline()
 
274
                elif line.startswith(oops):
 
275
                    # Stanza end must be missing - start writing from here.
 
276
                    filteroutp = False
 
277
                    outfp.write(line)
273
278
                # Otherwise, ignore the line
274
279
            else:
275
280
                if line.strip() == start: