{"thread":{"id":"35051","subject":"Automatically filling in git send-email arguments based on an existing e-mail","startedAt":"2013-10-02T08:25:25Z","lastAt":"2013-10-02T10:19:30Z","messageCount":2,"participants":["Matthijs Kooijman","John Keeping"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"228516","messageId":"20131002082525.GU10217@login.drsnuggles.stderr.nl","threadId":"35051","inReplyTo":null,"subject":"Automatically filling in git send-email arguments based on an existing e-mail","fromName":"Matthijs Kooijman","fromEmail":"matthijs@stdin.nl","sentAt":"2013-10-02T08:25:25Z","receivedAt":"2013-10-02T08:25:25Z","isPatch":false,"sender":{"key":"matthijs@stdin.nl","avatar":"https://avatars.githubusercontent.com/u/194491?v=4"},"body":"Hi folks,\n\nsometimes when I send a patch, I want to reply it to an existing e-mail,\nusing pretty much the same recipient list. Currently, I have to:\n\n - copy-paste the message id for --in-reply-to header\n - copy one address for --to\n - copy the other addresses for the --cc's\n\nSince I can't just chuck a list of addresses into --cc and I need to\nquote every one because of the <> and spaces in there, this feels like\nit's more tedious than needed.\n\nIt seems like there should be a weay to just copy paste the headers from\nthe original e-mail into the stdin of git send-email or a wrapper script\nand let it sort things out from there.\n\n\nIs there any interest in something like this? Does anyone else perhaps\nalready have such a script lying around?\n\n(After writing this mail, I just noticed \"[PATCH] git-send-email: two\nnew options: to-cover, cc-cover\", which could help a bit to simplify\nthings, but not quite as far as I'm proposing here...)\n\nGr.\n\nMatthijs\n"},{"id":"228517","messageId":"20131002101930.GH27238@serenity.lan","threadId":"35051","inReplyTo":"20131002082525.GU10217@login.drsnuggles.stderr.nl","subject":"Re: Automatically filling in git send-email arguments based on an existing e-mail","fromName":"John Keeping","fromEmail":"john@keeping.me.uk","sentAt":"2013-10-02T10:19:30Z","receivedAt":"2013-10-02T10:19:30Z","isPatch":false,"sender":{"key":"john@keeping.me.uk","avatar":"https://avatars.githubusercontent.com/u/1702081?v=4"},"body":"On Wed, Oct 02, 2013 at 10:25:25AM +0200, Matthijs Kooijman wrote:\n> sometimes when I send a patch, I want to reply it to an existing e-mail,\n> using pretty much the same recipient list. Currently, I have to:\n> \n>  - copy-paste the message id for --in-reply-to header\n>  - copy one address for --to\n>  - copy the other addresses for the --cc's\n> \n> Since I can't just chuck a list of addresses into --cc and I need to\n> quote every one because of the <> and spaces in there, this feels like\n> it's more tedious than needed.\n> \n> It seems like there should be a weay to just copy paste the headers from\n> the original e-mail into the stdin of git send-email or a wrapper script\n> and let it sort things out from there.\n> \n> \n> Is there any interest in something like this? Does anyone else perhaps\n> already have such a script lying around?\n\nI have been working on this for a while, but haven't yet got anything\ninto a suitable state for submission (and haven't made progress on it\nfor a while).  My WIP is at:\n\n    https://github.com/johnkeeping/git/tree/format-patch-msgstore\n\nThe idea is to introduce a new helper protocol so that you can implement\nvarious ways of finding a message given a message-id; I've implemented\none that finds the message from gmane.\n\nWhat's there works in format-patch but not with send-email, which\nimplements message IDs itself rather than forwarding the arguments to\nformat-patch and I haven't had time to investigate changing send-email\nto work with these patches.\n"}]}