]> git.donarmstrong.com Git - debbugs.git/commitdiff
extract control psuedoheaders into @control_bits
authorDon Armstrong <don@donarmstrong.com>
Thu, 12 Jul 2012 21:10:23 +0000 (14:10 -0700)
committerDon Armstrong <don@donarmstrong.com>
Thu, 12 Jul 2012 21:10:23 +0000 (14:10 -0700)
scripts/process

index afe0b189b6dd3400b82fd78ed3b3ab0ff95f2b2b..c238246613d82bc113fcb2c1f6e7c247e4e42e28 100755 (executable)
@@ -210,6 +210,7 @@ if (@bodylines and $bodylines[0] =~ /^-----BEGIN PGP SIGNED/) {
 
 #psuedoheaders
 my %pheader;
+my @control_bits;
 # extract pseudo-headers
 for my $phline (@bodylines)
 {
@@ -221,9 +222,13 @@ for my $phline (@bodylines)
     $fv =~ s/\s*$//;
     print {$debugfh} ">$fn|$fv|\n";
     $fn = lc $fn;
-    # Don't lc owner or forwarded
-    $fv = lc $fv unless $fn =~ /^(?:owner|forwarded|usertags|version|source-version)$/;
-    $pheader{$fn} = $fv;
+    if ($fn =~ /^control$/) {
+       push @control_bits,$fv;
+    } else {
+       # Don't lc owner or forwarded
+       $fv = lc $fv unless $fn =~ /^(?:owner|forwarded|usertags|version|source-version)$/;
+       $pheader{$fn} = $fv;
+    }
     print {$debugfh} ">$fn~$fv<\n";
 }