From c0c1280bc8f45e6e1f08dd2468d127582153e2f2 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Mon, 26 Jan 2015 18:30:02 -0800 Subject: Fixed a bug in bin/rmlist that would throw an exception or just fail to remove held message files for a list with regexp special characters in its name. --- bin/rmlist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/rmlist b/bin/rmlist index f61b41d4..b0980104 100755 --- a/bin/rmlist +++ b/bin/rmlist @@ -134,7 +134,7 @@ def main(): # Remove any held messages for this list for filename in os.listdir(mm_cfg.DATA_DIR): - cre = re.compile('^heldmsg-%s-\d+\.(pck|txt)$' % listname, + cre = re.compile('^heldmsg-%s-\d+\.(pck|txt)$' % re.escape(listname), re.IGNORECASE) if cre.match(filename): REMOVABLES.append((os.path.join(mm_cfg.DATA_DIR, filename), -- cgit v1.2.3