diff options
-rw-r--r-- | Mailman/MTA/Postfix.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/MTA/Postfix.py b/Mailman/MTA/Postfix.py index 24c1c7e5..84718e5f 100644 --- a/Mailman/MTA/Postfix.py +++ b/Mailman/MTA/Postfix.py @@ -1,4 +1,4 @@ -# Copyright (C) 2001,2002 by the Free Software Foundation, Inc. +# Copyright (C) 2001-2003 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 @@ -259,14 +259,14 @@ def _do_remove(mlist, textfile, virtualp): # filtering out a stanza, we're just looking for the proper begin # marker. if filteroutp: - if line.startswith(end): + if line.strip() == end: filteroutp = 0 # Discard the trailing blank line, but don't worry if # we're at the end of the file. infp.readline() # Otherwise, ignore the line else: - if line.startswith(start): + if line.strip() == start: # Filter out this stanza filteroutp = 1 else: |