From b78cd159aa7283fbf18a15b50c7df06f2fd26165 Mon Sep 17 00:00:00 2001 From: epg <> Date: Mon, 12 Sep 2005 15:15:46 +0000 Subject: [PATCH] (find_mh_folder): Don't know why, but the MAGIC_TO crap wasn't doing the same kind of match as the other filters, and you couldn't use parts of the match in the folder name. Fix. --- minc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/minc b/minc index b219f83..8e8ec70 100755 --- a/minc +++ b/minc @@ -488,8 +488,10 @@ sub find_mh_folder { foreach $contents (@{$headers{lc($header)}}) { foreach $pair (@filter) { ($match, $expression) = @$pair; - if ($contents =~ /$match/) { - return $expression; + if ($contents =~ /$match/i) { + if (eval "\$result = \"$expression\"") { + return $result; + } } } } -- 2.56.0