]> git.donarmstrong.com Git - debbugs.git/blobdiff - scripts/process
Remove mailing list markers of the form [<list-name>] from the subject line to avoid...
[debbugs.git] / scripts / process
index e5759586a6ed25cb38a87c033661744b67be0407..e313a9d48c298078f79c281837e6c84d1a3754cf 100755 (executable)
@@ -271,7 +271,11 @@ if (!defined($header{'subject'}))
 }
 
 my $ref=-1;
-$subject =~ s/^Re:\s*//i; $_= $subject."\n";
+# remove Re: from the subject line
+$subject =~ s/^Re:\s*//i;
+# remove remaining mailing list name markers from the subject line
+$subject =~ s/^\[.*\]\s*//i;
+$_= $subject."\n";
 if (not defined $tryref and m/^Bug ?\#(\d+)\D/i) {
     $tryref = $1 if $1 > 0;
 }