]> diplodocus.org Git - minc/commitdiff
(find_mh_folder): Don't know why, but the MAGIC_TO crap wasn't doing
authorepg <>
Mon, 12 Sep 2005 15:15:46 +0000 (15:15 +0000)
committerepg <>
Mon, 12 Sep 2005 15:15:46 +0000 (15:15 +0000)
the same kind of match as the other filters, and you couldn't use
parts of the match in the folder name.  Fix.

minc

diff --git a/minc b/minc
index b219f83..8e8ec70 100755 (executable)
--- 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;
+                                }
                             }
                         }
                     }