Git development
 help / color / mirror / Atom feed
* Problem with git send-email and --reply-to
@ 2026-04-24 13:13 Christian König
  2026-04-24 13:42 ` Ramsay Jones
  2026-04-24 16:29 ` Tian Yuchen
  0 siblings, 2 replies; 3+ messages in thread
From: Christian König @ 2026-04-24 13:13 UTC (permalink / raw)
  To: git

Hello everybody,

either I've found a bug or there is something absolutely not obvious going on here with git send-email.

I want to use the --reply-to option with git send-email to make sure that people reply to my AMD mail address and not my gmail address used for sending mails.

When I use the option on the command line it works fine, but when I put that into my .gitconfig it doesn't seem to have any effect.

Any idea what could be wrong here?

.gitconfig looks like this:

[user]
    name = Christian König
    email = christian.koenig@amd.com
[sendemail]
    reply-to = christian.koenig@amd.com

Thanks in advance,
Christian.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem with git send-email and --reply-to
  2026-04-24 13:13 Problem with git send-email and --reply-to Christian König
@ 2026-04-24 13:42 ` Ramsay Jones
  2026-04-24 16:29 ` Tian Yuchen
  1 sibling, 0 replies; 3+ messages in thread
From: Ramsay Jones @ 2026-04-24 13:42 UTC (permalink / raw)
  To: Christian König, git



On 24/04/2026 2:13 pm, Christian König wrote:
> Hello everybody,
> 
> either I've found a bug or there is something absolutely not obvious going on here with git send-email.
> 
> I want to use the --reply-to option with git send-email to make sure that people reply to my AMD mail address and not my gmail address used for sending mails.
> 
> When I use the option on the command line it works fine, but when I put that into my .gitconfig it doesn't seem to have any effect.
> 
> Any idea what could be wrong here?
> 
> .gitconfig looks like this:
> 
> [user]
>     name = Christian König
>     email = christian.koenig@amd.com
> [sendemail]
>     reply-to = christian.koenig@amd.com

I don't think this is a valid config variable. It is not mentioned in the man page.
In the source, it is noted as '# Variables we fill in automatically, or via prompting:'
in addition to being part of the command-line '%options' map. So, ...

Sorry not to be of more help.

ATB,
Ramsay Jones




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem with git send-email and --reply-to
  2026-04-24 13:13 Problem with git send-email and --reply-to Christian König
  2026-04-24 13:42 ` Ramsay Jones
@ 2026-04-24 16:29 ` Tian Yuchen
  1 sibling, 0 replies; 3+ messages in thread
From: Tian Yuchen @ 2026-04-24 16:29 UTC (permalink / raw)
  To: Christian König, git

On 4/24/26 21:13, Christian König wrote:
> Hello everybody,
> 
> either I've found a bug or there is something absolutely not obvious going on here with git send-email.
> 
> I want to use the --reply-to option with git send-email to make sure that people reply to my AMD mail address and not my gmail address used for sending mails.
> 
> When I use the option on the command line it works fine, but when I put that into my .gitconfig it doesn't seem to have any effect.
> 
> Any idea what could be wrong here?
> 
> .gitconfig looks like this:
> 
> [user]
>      name = Christian König
>      email = christian.koenig@amd.com
> [sendemail]
>      reply-to = christian.koenig@amd.com
> 
> Thanks in advance,
> Christian.

The most straightforward solution might be:

[format]
     headers = "Reply-To: christian.koenig@amd.com"

This is equivalent to manually adding this line at the beginning of the 
email. In most cases, there shouldn’t be any problems, I guess?

Thanks, Yuchen


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-04-24 16:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-24 13:13 Problem with git send-email and --reply-to Christian König
2026-04-24 13:42 ` Ramsay Jones
2026-04-24 16:29 ` Tian Yuchen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox