git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Don't send copies to the From: address

From
RARyan Anderson <ryan@michonline.com>
Date
Feb 13, 2006, 07:20 UTC
Message-ID
<20060213072053.GA5540@mythryan2.michonline.com>
In-Reply-To
<7vk6c2sg66.fsf@assigned-by-dhcp.cox.net>
On Fri, Feb 10, 2006 at 07:55:13PM -0800, Junio C Hamano wrote:
Show 26 quoted lines
> Christian Biesinger <cbiesinger@web.de> writes:
> 
> > Sending copies to the from address is pointless.
> 
> Ryan, care to defend this part of the code?  This behaviour
> might have been inherited from Greg's original version.
> 
> I cannot speak for Ryan or Greg, but I think the script
> deliberately does this to support this workflow:
> 
>  (1) The original author sends in a patch to a subsystem
>      maintainer;
> 
>  (2) The subsystem maintainer applies the patch to her tree,
>      perhaps with her own sign-off and sign-offs by other people
>      collected from the list.  She examines it and says this
>      patch is good;
> 
>  (3) The commit is formatted and sent to higher level of the
>      foodchain.  The message is CC'ed to interested parties in
>      order to notify that the patch progressed in the
>      foodchain.
> 
> Me, personally I do not like CC: to people on the signed-off-by
> list, but dropping a note to From: person makes perfect sense to
> me, if it is to notify the progress of the patch.

That's the thinking I've been using everytime I think about how that code works.

> What you are after _might_ be not CC'ing it if it was your own
> patch.  Maybe something like this would help, but even if that
> is the case I suspect many people want to CC herself so it needs
> to be an optional feature.

This is probably along the right lines, but there are a few other things we need as well.

I'm thinking of "don't add my email to cc:", as well ass "don't add cc:s from From and Signed-off-by" as an option.

So, please feel free to commit this one, and I'll send a patch in a minute or two for the other half.

Show 23 quoted lines
> 
> -- >8 --
> [PATCH] Do not CC me
> 
> ---
> git diff
> diff --git a/git-send-email.perl b/git-send-email.perl
> index 3f1b3ca..a02e2f8 100755
> --- a/git-send-email.perl
> +++ b/git-send-email.perl
> @@ -343,7 +343,7 @@ foreach my $t (@files) {
>  	}
>  	close F;
>  
> -	$cc = join(", ", unique_email_list(@cc));
> +	$cc = join(", ", unique_email_list(grep { $_ ne $from } @cc));
>  
>  	send_message();
>  
> 
> 
> 
> 
-- 
Ryan Anderson
  sometimes Pug Majere
Previous: Christian Biesinger
Message 6 of 6 in “Don't send copies to the From: address”
  1. Don't send copies to the From: addressChristian Biesinger, Feb 11, 2006
  2. Junio C HamanoFeb 11, 2006
  3. Greg KHFeb 11, 2006
  4. Christian BiesingerFeb 11, 2006
  5. Christian BiesingerFeb 11, 2006
  6. Ryan AndersonFeb 13, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.