]> git.donarmstrong.com Git - debbugs.git/blobdiff - scripts/process
strip out Mail-Followup-To
[debbugs.git] / scripts / process
index 95d933d7a1caa67e76a3a0d74091a693ea010144..228d28ad32fc6166e8c52b9cd025aa0fdbfe8d32 100755 (executable)
@@ -180,8 +180,8 @@ for my $hdr (@headerlines) {
     $_ = $hdr;
     s/\n\s/ /g;
     finish() if m/^x-loop: (\S+)$/i && $1 eq "$gMaintainerEmail";
-    my $ins = !m/^subject:/i && !m/^reply-to:/i && !m/^return-path:/i
-           && !m/^From / && !m/^X-Debbugs-/i;
+    my $ins = !m/^(?:(?:subject|reply-to|return-path|mail-followup-to):
+                |From\s|X-Debbugs-)/xi;
     $fwd .= encode_utf8($hdr)."\n" if $ins;
     # print {$debugfh} ">$_<\n";
     if (s/^(\S+):\s*//) {