The hard part of this is actually getting ahold of the Message-Id header field 
so you can set the In-Reply-To field :) In the meantime I suppose I'll just 
paste patches into a reply message.

On May 12, 2011, at 2:16 PM, Jacob Helwig wrote:

> It's handy to be able to support those people that wish to be kind to
> non-gmail users by setting the In-Reply-To mail header, when sending
> patches in response to an existing mail thread.
> 
> Signed-off-by: Jacob Helwig <[email protected]>
> ---
> Local-branch: tickets/next/7498-support-in-reply-to-in-rake-mail_patches
> tasks/rake/git_workflow.rake |    9 ++++++++-
> 1 files changed, 8 insertions(+), 1 deletions(-)
> 
> diff --git a/tasks/rake/git_workflow.rake b/tasks/rake/git_workflow.rake
> index cb97913..2c6223c 100644
> --- a/tasks/rake/git_workflow.rake
> +++ b/tasks/rake/git_workflow.rake
> @@ -123,8 +123,15 @@ task :mail_patches do
>     compose = ""
>   end
> 
> +  # Optionally set the In-Reply-To header.
> +  if ENV["IN_REPLY_TO"]
> +    in_reply_to = "--in-reply-to '#{ENV["IN_REPLY_TO"]}'"
> +  else
> +    in_reply_to = ""
> +  end
> +
>   # Now send the mail.
> -  sh "git send-email #{compose} --no-signed-off-by-cc --suppress-from --to 
> [email protected] 00*.patch"
> +  sh "git send-email #{in_reply_to} #{compose} --no-signed-off-by-cc 
> --suppress-from --to [email protected] 00*.patch"
> 
>   # Finally, clean up the patches
>   sh "rm 00*.patch"
> -- 
> 1.7.5.1
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Developers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/puppet-dev?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to