aboutsummaryrefslogtreecommitdiffstats
path: root/bin/rmlist
diff options
context:
space:
mode:
Diffstat (limited to 'bin/rmlist')
-rwxr-xr-xbin/rmlist2
1 files changed, 1 insertions, 1 deletions
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),