From b7843cf92e2fa55b89e0993eb82c4453d3736d46 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 12 Sep 2012 11:42:05 +0200 Subject: [PATCH] Remove mailing list markers of the form [] from the subject line to avoid duplication (and more) of the bug number when replying to bug postings. Signed-off-by: Don Armstrong --- debian/changelog | 3 +++ scripts/process | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 7e8754d..137bfd2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 [] from the subject + line to avoid duplication (and more) of the bug number when replying to + bug postings. -- Don Armstrong Wed, 25 Aug 2010 01:57:38 -0700 diff --git a/scripts/process b/scripts/process index e575958..e313a9d 100755 --- a/scripts/process +++ b/scripts/process @@ -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; } -- 2.39.2