{"thread":{"id":"65548","subject":"Problem with git send-email and --reply-to","startedAt":"2026-04-24T13:14:04Z","lastAt":"2026-04-24T16:29:23Z","messageCount":3,"participants":["Christian König","Ramsay Jones","Tian Yuchen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"542246","messageId":"26f3a5b2-1656-482a-9349-ca3592b8bba1@amd.com","threadId":"65548","inReplyTo":null,"subject":"Problem with git send-email and --reply-to","fromName":"Christian König","fromEmail":"christian.koenig@amd.com","sentAt":"2026-04-24T13:13:57Z","receivedAt":"2026-04-24T13:14:04Z","isPatch":false,"body":"Hello everybody,\n\neither I've found a bug or there is something absolutely not obvious going on here with git send-email.\n\nI 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.\n\nWhen 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.\n\nAny idea what could be wrong here?\n\n.gitconfig looks like this:\n\n[user]\n    name = Christian König\n    email = christian.koenig@amd.com\n[sendemail]\n    reply-to = christian.koenig@amd.com\n\nThanks in advance,\nChristian.\n"},{"id":"542247","messageId":"cb3bcb25-ed95-40ec-a924-c9924a025c87@ramsayjones.plus.com","threadId":"65548","inReplyTo":"26f3a5b2-1656-482a-9349-ca3592b8bba1@amd.com","subject":"Re: Problem with git send-email and --reply-to","fromName":"Ramsay Jones","fromEmail":"ramsay@ramsayjones.plus.com","sentAt":"2026-04-24T13:42:42Z","receivedAt":"2026-04-24T13:42:46Z","isPatch":false,"body":"\n\nOn 24/04/2026 2:13 pm, Christian König wrote:\n> Hello everybody,\n> \n> either I've found a bug or there is something absolutely not obvious going on here with git send-email.\n> \n> 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.\n> \n> 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.\n> \n> Any idea what could be wrong here?\n> \n> .gitconfig looks like this:\n> \n> [user]\n>     name = Christian König\n>     email = christian.koenig@amd.com\n> [sendemail]\n>     reply-to = christian.koenig@amd.com\n\nI don't think this is a valid config variable. It is not mentioned in the man page.\nIn the source, it is noted as '# Variables we fill in automatically, or via prompting:'\nin addition to being part of the command-line '%options' map. So, ...\n\nSorry not to be of more help.\n\nATB,\nRamsay Jones\n\n\n\n"},{"id":"542264","messageId":"d83ee7a0-b5e8-445f-af93-91c78ef63ff8@malon.dev","threadId":"65548","inReplyTo":"26f3a5b2-1656-482a-9349-ca3592b8bba1@amd.com","subject":"Re: Problem with git send-email and --reply-to","fromName":"Tian Yuchen","fromEmail":"cat@malon.dev","sentAt":"2026-04-24T16:29:13Z","receivedAt":"2026-04-24T16:29:23Z","isPatch":false,"body":"On 4/24/26 21:13, Christian König wrote:\n> Hello everybody,\n> \n> either I've found a bug or there is something absolutely not obvious going on here with git send-email.\n> \n> 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.\n> \n> 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.\n> \n> Any idea what could be wrong here?\n> \n> .gitconfig looks like this:\n> \n> [user]\n>      name = Christian König\n>      email = christian.koenig@amd.com\n> [sendemail]\n>      reply-to = christian.koenig@amd.com\n> \n> Thanks in advance,\n> Christian.\n\nThe most straightforward solution might be:\n\n[format]\n     headers = \"Reply-To: christian.koenig@amd.com\"\n\nThis is equivalent to manually adding this line at the beginning of the \nemail. In most cases, there shouldn’t be any problems, I guess?\n\nThanks, Yuchen\n\n"}]}