# Git send-email not sending email patches as subsequent replies

3 messages from 2018-04-06 to 2018-04-08. Participants: David Davis, Eric Wong.
Thread: https://gitlist.dev/t/48234

## David Davis, 2018-04-06 19:28

Subject: Git send-email not sending email patches as subsequent replies
Message-ID: <CANqAOmsZxpbkT3YFcZTOeRx2gnxnzc+_C-amVQjKSE=0m7_n7w@mail.gmail.com>
URL: https://gitlist.dev/e/CANqAOmsZxpbkT3YFcZTOeRx2gnxnzc%2B_C-amVQjKSE%3D0m7_n7w%40mail.gmail.com

```
Hello, I have the following git send-email command:

git send-email -5 --quiet --thread --no-chain-reply-to --compose
--subject='Recent Base Prototype Changes Summary'
--to=davisdavid@google.com --from=davisdavid@google.com

It's sending emails but as 5 individual emails and not as subsequent
replies as suggested on https://git-scm.com/docs/git-send-email below:

So for example when --thread and --no-chain-reply-to are specified,
the second and subsequent patches will be replies to the first one
like in the illustration below where [PATCH v2 0/3] is in reply to
[PATCH 0/2]:

[PATCH 0/2] Here is what I did...
  [PATCH 1/2] Clean up and tests
  [PATCH 2/2] Implementation
  [PATCH v2 0/3] Here is a reroll
    [PATCH v2 1/3] Clean up
    [PATCH v2 2/3] New tests
    [PATCH v2 3/3] Implementation

What am I missing?

Thanks,
David

```

## Eric Wong, 2018-04-07 23:08

Subject: Re: Git send-email not sending email patches as subsequent replies
Message-ID: <20180407230848.GA5048@80x24.org>
URL: https://gitlist.dev/e/20180407230848.GA5048%4080x24.org
In-Reply-To: <CANqAOmsZxpbkT3YFcZTOeRx2gnxnzc+_C-amVQjKSE=0m7_n7w@mail.gmail.com>

```
David Davis <davidjamesdavis.djd@gmail.com> wrote:
> Hello, I have the following git send-email command:
> 
> git send-email -5 --quiet --thread --no-chain-reply-to --compose
> --subject='Recent Base Prototype Changes Summary'
> --to=davisdavid@google.com --from=davisdavid@google.com
> 
> It's sending emails but as 5 individual emails and not as subsequent
> replies as suggested on https://git-scm.com/docs/git-send-email below:

So, I expect the above command should give you six emails:

  [PATCH 0/5] Recent Base Prototype Changes Summary
    [PATCH 1/5]
    [PATCH 2/5]
    [PATCH 3/5]
    [PATCH 4/5]
    [PATCH 5/5]

Is that not what you're seeing?

You're quoting the manpage for --in-reply-to option below,
but you're not using that option.

> So for example when --thread and --no-chain-reply-to are specified,
> the second and subsequent patches will be replies to the first one
> like in the illustration below where [PATCH v2 0/3] is in reply to
> [PATCH 0/2]:
> 
> [PATCH 0/2] Here is what I did...
>   [PATCH 1/2] Clean up and tests
>   [PATCH 2/2] Implementation
>   [PATCH v2 0/3] Here is a reroll
>     [PATCH v2 1/3] Clean up
>     [PATCH v2 2/3] New tests
>     [PATCH v2 3/3] Implementation
> 
> What am I missing?

I'm not sure...  I suspect you're either not using --in-reply-to=
or misreading the manpage, somehow.

```

## Eric Wong, 2018-04-08 02:47

Subject: Re: Git send-email not sending email patches as subsequent replies
Message-ID: <20180408024749.GA19319@whir>
URL: https://gitlist.dev/e/20180408024749.GA19319%40whir
In-Reply-To: <CANqAOmvjiiBQs4GHrFbBBXygwVEsCkH7ceSsFKFpmvscKCWrGg@mail.gmail.com>

```
David Davis <davidjamesdavis.djd@gmail.com> wrote:
> I'm seeing 6 individual emails, how do I just see one email followed by 5
> email replies to the one? I don't want six individual emails.

The five email replies you want are still individual emails.
Emails are ALWAYS "individual", and reply emails simply have a
References: and/or In-Reply-To: header in them.

Whether your mail client shows them as individual mails is
another story.  I also suspect whatever mail client you're using
isn't rendering thread hierarchies correctly.

Most good mail clients use the same algorithm to display message
threads since the days of Netscape:

	https://www.jwz.org/doc/threading.html

I've also modified that algorithm to be recursion-free for public-inbox:

	https://rt.cpan.org/Public/Bug/Display.html?id=116727


Btw, please disable HTML mail in your mail client or it won't
show up on the list (and other people won't be able to help).
I may not be around much for a bit.

```
