]> git.donarmstrong.com Git - debbugs.git/commitdiff
Remove mailing list markers of the form [<list-name>] from the subject line to avoid...
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>
Wed, 12 Sep 2012 09:42:05 +0000 (11:42 +0200)
committerDon Armstrong <don@donarmstrong.com>
Fri, 28 Sep 2012 17:21:56 +0000 (10:21 -0700)
Signed-off-by: Don Armstrong <don@donarmstrong.com>
debian/changelog
scripts/process

index 7e8754ded7ae0caf532c22c7d01fe5fbf39f59f8..137bfd2ef97e830d13e53566386dee78021d0b10 100644 (file)
@@ -35,6 +35,9 @@ debbugs (2.4.2~exp2) UNRELEASED; urgency=low
     html_tail from templates, use count_bugs everywhere, load bugs.css,
     fix global variable usage in html header.
   * Add empty $gBugSubscriptionDomain variable to config file template.
+  * Remove mailing list markers of the form [<list-name>] from the subject
+    line to avoid duplication (and more) of the bug number when replying to
+    bug postings.
 
  -- Don Armstrong <don@debian.org>  Wed, 25 Aug 2010 01:57:38 -0700
 
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;
 }