# Sending a thread of patches

5 messages from 2007-03-04 to 2007-03-05. Participants: Panagiotis Issaris, Johannes Schindelin, Julian Phillips.
Thread: https://gitlist.dev/t/7082

## Panagiotis Issaris, 2007-03-04 23:00

Subject: Sending a thread of patches
Message-ID: <45EB4F98.7030206@issaris.org>
URL: https://gitlist.dev/e/45EB4F98.7030206%40issaris.org

```
Hi,

I am trying to send a thread of patches to a mailinglist but the e-mails 
do not show up as one thread in some mailclients.
Gmane shows the patches nicely in one thread [1], but Thunderbird shows 
all of them _except one_ as a thread. E-mail [PATCH 02/31]
does not show up in the thread but beside it. The CC-ed emails which 
arrived in my inbox do not appear in one thread either, half of
them do end up in one thread, the other half don't. This is possibly 
(most likely?) a Thunderbird problem as the e-mails appear alright in Mutt,
but I was wondering if other people had noticed similar problems with 
Thunderbird+git-format-patch+git-send-email and if they might have some
workarounds. Or, if someone might  notice that I am just using incorrect 
parameters for both commands.

These are the commands I used:
git format-patch --thread --attach -n origin..or2
git-send-email --no-chain-reply-to --to ffmpeg-devel@mplayerhq.hu  
--from takis.issaris@uhasselt.be --subject "[PATCH 00/31] Various 
Doxygen related patches"  --suppress-from --compose 00*patch

With friendly regards,
Takis

[1] http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/45715

```

## Johannes Schindelin, 2007-03-04 23:44

Subject: Re: Sending a thread of patches
Message-ID: <Pine.LNX.4.63.0703050030210.22628@wbgn013.biozentrum.uni-wuerzburg.de>
URL: https://gitlist.dev/e/Pine.LNX.4.63.0703050030210.22628%40wbgn013.biozentrum.uni-wuerzburg.de
In-Reply-To: <45EB4F98.7030206@issaris.org>

```
Hi,

On Mon, 5 Mar 2007, Panagiotis Issaris wrote:

> I am trying to send a thread of patches to a mailinglist but the e-mails do
> not show up as one thread in some mailclients.
> Gmane shows the patches nicely in one thread [1], but Thunderbird shows all of
> them _except one_ as a thread. E-mail [PATCH 02/31]
> does not show up in the thread but beside it.

This might be related to the fact that you have two (!) In-Reply-To: 
headers. See:

http://article.gmane.org/gmane.comp.video.ffmpeg.devel/45716/raw

to verify.

> These are the commands I used:
> git format-patch --thread --attach -n origin..or2
> git-send-email --no-chain-reply-to --to ffmpeg-devel@mplayerhq.hu  --from
> takis.issaris@uhasselt.be --subject "[PATCH 00/31] Various Doxygen related
> patches"  --suppress-from --compose 00*patch

I have the impression from reading git-send-email that a second 
In-Reply-To: header is set if --chain-reply-to _or_ no --in-reply-to is 
specified. Since you do not have an --in-reply-to in your command line, I 
guess it is that.

However, I do not claim that I understand _why_ this is the behaviour, nor 
that I ever used git-send-email.

Ciao,
Dscho

```

## Julian Phillips, 2007-03-04 23:56

Subject: Re: Sending a thread of patches
Message-ID: <Pine.LNX.4.64.0703042354250.15433@beast.quantumfyre.co.uk>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0703042354250.15433%40beast.quantumfyre.co.uk
In-Reply-To: <45EB4F98.7030206@issaris.org>

```
On Mon, 5 Mar 2007, Panagiotis Issaris wrote:

> Hi,
>
> I am trying to send a thread of patches to a mailinglist but the e-mails do 
> not show up as one thread in some mailclients.
> Gmane shows the patches nicely in one thread [1], but Thunderbird shows all 
> of them _except one_ as a thread. E-mail [PATCH 02/31]
> does not show up in the thread but beside it. The CC-ed emails which arrived 
> in my inbox do not appear in one thread either, half of
> them do end up in one thread, the other half don't. This is possibly (most 
> likely?) a Thunderbird problem as the e-mails appear alright in Mutt,
> but I was wondering if other people had noticed similar problems with 
> Thunderbird+git-format-patch+git-send-email and if they might have some
> workarounds. Or, if someone might  notice that I am just using incorrect 
> parameters for both commands.
>
> These are the commands I used:
> git format-patch --thread --attach -n origin..or2
> git-send-email --no-chain-reply-to --to ffmpeg-devel@mplayerhq.hu  --from 
> takis.issaris@uhasselt.be --subject "[PATCH 00/31] Various Doxygen related 
> patches"  --suppress-from --compose 00*patch

As far as I can figure, you don't want to use the --thread option to 
git-format-patch when using git-send-email.  However, I found 
git-send-email confusing enough that I just finished writing my own script 
to sit ontop of git-format-patch so I may be wrong ...

-- 
Julian

  ---
... relaxed in the manner of a man who has no need to put up a front of
any kind.
 		-- John Ball, "Mark One: the Dummy"

```

## Johannes Schindelin, 2007-03-05 02:25

Subject: Re: Sending a thread of patches
Message-ID: <Pine.LNX.4.63.0703050324220.22628@wbgn013.biozentrum.uni-wuerzburg.de>
URL: https://gitlist.dev/e/Pine.LNX.4.63.0703050324220.22628%40wbgn013.biozentrum.uni-wuerzburg.de
In-Reply-To: <Pine.LNX.4.64.0703042354250.15433@beast.quantumfyre.co.uk>

```
Hi,

On Sun, 4 Mar 2007, Julian Phillips wrote:

> As far as I can figure, you don't want to use the --thread option to 
> git-format-patch when using git-send-email.

That might be true. However, I consider it a bug when git-send-email does 
not replace the In-Reply-To: header, but adds a second one.

Ciao,
Dscho

```

## Julian Phillips, 2007-03-05 02:42

Subject: Re: Sending a thread of patches
Message-ID: <Pine.LNX.4.64.0703050240360.5733@beast.quantumfyre.co.uk>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0703050240360.5733%40beast.quantumfyre.co.uk
In-Reply-To: <Pine.LNX.4.63.0703050324220.22628@wbgn013.biozentrum.uni-wuerzburg.de>

```
On Mon, 5 Mar 2007, Johannes Schindelin wrote:

> Hi,
>
> On Sun, 4 Mar 2007, Julian Phillips wrote:
>
>> As far as I can figure, you don't want to use the --thread option to
>> git-format-patch when using git-send-email.
>
> That might be true. However, I consider it a bug when git-send-email does
> not replace the In-Reply-To: header, but adds a second one.

I wouldn't disagree with that.

FWIW, I seem to remember noticing that it did the same for References too 
...

-- 
Julian

  ---
BOFH Excuse #323:

Your processor has processed too many instructions.  Turn it off immediately, do not type any commands!!

```
