summaryrefslogtreecommitdiff
path: root/Mailman/MTA/Postfix.py
diff options
context:
space:
mode:
authorbwarsaw2003-01-02 06:19:50 +0000
committerbwarsaw2003-01-02 06:19:50 +0000
commitf403b9345131bac74351428ed34658bf51f4daa2 (patch)
treeaed1e40f8a436f7546de9128c0751726cbab25ec /Mailman/MTA/Postfix.py
parent5a94d21f7ca4393e65ac5b4e3c39e932901bb5a8 (diff)
downloadmailman-f403b9345131bac74351428ed34658bf51f4daa2.tar.gz
mailman-f403b9345131bac74351428ed34658bf51f4daa2.tar.zst
mailman-f403b9345131bac74351428ed34658bf51f4daa2.zip
_do_remove(): Patch by Jon Parise to fix a bug in the stanza matching
code which would delete any list with a matching prefix (i.e. "bin/rmlist foo" would also delete the stanza for "foo-one" and "foo-two").
Diffstat (limited to 'Mailman/MTA/Postfix.py')
-rw-r--r--Mailman/MTA/Postfix.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/MTA/Postfix.py b/Mailman/MTA/Postfix.py
index 24c1c7e58..84718e5f8 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: