From: Don Armstrong Date: Sat, 21 Oct 2006 08:09:25 +0000 (-0700) Subject: add support for setting the user corresponding to a user tag X-Git-Tag: release/2.6.0~589^2~1 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=5ec7562b3ce2e33a06b57a60abe54fc04d2b2c6d;p=debbugs.git add support for setting the user corresponding to a user tag --- diff --git a/html/Reporting.html.in b/html/Reporting.html.in index 1b42aaed..29fa156e 100644 --- a/html/Reporting.html.in +++ b/html/Reporting.html.in @@ -218,11 +218,14 @@ as described in the Separate multiple tags with commas, spaces, or both.
+User: <username>
 Usertags: <usertags>
 
-

Replace <tags> with one or more usertags. Separate -multiple tags with commas, spaces, or both.

+

Replace <usertags> with one or more usertags. +Separate multiple tags with commas, spaces, or both. If you specify a +username, that users tags will be set. Otherwise, the email address of +the sender will be used as the username

Not forwarding to the mailing list - minor $gBug reports

diff --git a/scripts/process.in b/scripts/process.in index eeb195df..6569260f 100755 --- a/scripts/process.in +++ b/scripts/process.in @@ -651,12 +651,12 @@ END # Deal with usertags if (exists $pheader{usertags}) { my $user = $replyto; + $user = $pheader{user} if exists $pheader{user}; $user =~ s/,.*//; $user =~ s/^.*<(.*)>.*$/$1/; $user =~ s/[(].*[)]//; $user =~ s/^\s*(\S+)\s+.*$/$1/; - $user = "" unless (Debbugs::User::is_valid_user($user)); - if ($user ne '') { + if ($user ne '' and Debbugs::User::is_valid_user($user)) { $pheader{usertags} =~ s/(?:^\s+|\s+$)//g; my %user_tags; read_usertags(\%user_tags,$user); @@ -670,6 +670,12 @@ END } write_usertags(\%usertags,$user); } + else { + $brokenness .=<