aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-05-02 12:32:33 +0000
committerlpsolit%gmail.com <>2008-05-02 12:32:33 +0000
commit35e40627afb0675c23816b040baca7541387c269 (patch)
treec27cb09348faffea474fc51fb27ba31cdd477a33 /email_in.pl
parentBug 431720: addtonewgroup is no longer used in Bugzilla 3.2 - Patch by Fré... (diff)
downloadbugzilla-35e40627afb0675c23816b040baca7541387c269.tar.gz
bugzilla-35e40627afb0675c23816b040baca7541387c269.tar.bz2
bugzilla-35e40627afb0675c23816b040baca7541387c269.zip
Bug 422258: Let @cc be used to add new users to the CC list when editing bugs, for consistency with creating bugs which already uses @cc - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'email_in.pl')
-rw-r--r--email_in.pl10
1 files changed, 7 insertions, 3 deletions
diff --git a/email_in.pl b/email_in.pl
index bbbde2557..864bdee7f 100644
--- a/email_in.pl
+++ b/email_in.pl
@@ -177,6 +177,10 @@ sub process_bug {
$fields{'knob'} = 'duplicate';
}
+ # Move @cc to @newcc as @cc is used by process_bug.cgi to remove
+ # users from the CC list when @removecc is set.
+ $fields{'newcc'} = delete $fields{'cc'} if $fields{'cc'};
+
# Make it possible to remove CCs.
if ($fields{'removecc'}) {
$fields{'cc'} = [split(',', $fields{'removecc'})];
@@ -453,9 +457,9 @@ another email.
=head3 Adding/Removing CCs
-You can't just add CCs to a bug by using the C<@cc> parameter like you
-can when you're filing a bug. To add CCs, you can specify them in a
-comma-separated list in C<@newcc>.
+To add CCs, you can specify them in a comma-separated list in C<@cc>.
+For backward compatibility, C<@newcc> can also be used. If both are
+present, C<@cc> takes precedence.
To remove CCs, specify them as a comma-separated list in C<@removecc>.