# Sending patches via gmail

4 messages from 2008-04-01 to 2008-04-01. Participants: Jonathan del Strother, David Aguilar, Jeff King.
Thread: https://gitlist.dev/t/12946

## Jonathan del Strother, 2008-04-01 09:49

Subject: Sending patches via gmail
Message-ID: <57518fd10804010249h4fe43bbfu64cf9576ca2edcf3@mail.gmail.com>
URL: https://gitlist.dev/e/57518fd10804010249h4fe43bbfu64cf9576ca2edcf3%40mail.gmail.com

```
I can't seem to send patches via gmail without it adding spurious line
breaks -  eg http://article.gmane.org/gmane.comp.version-control.git/78407.
 I thought this was supposed to be possible...  All I'm doing is
copying the contents of my patch, then in Gmail, clicking Compose
Mail, make sure it's in Plain Text rather than Rich Formatting mode,
paste my patch, and moving the mail header lines out of the message
body.

What am I missing?
Jonathan del Strother

```

## David Aguilar, 2008-04-01 10:09

Subject: Re: Sending patches via gmail
Message-ID: <402731c90804010309w6a27d2d1t2df25ac41fff96b9@mail.gmail.com>
URL: https://gitlist.dev/e/402731c90804010309w6a27d2d1t2df25ac41fff96b9%40mail.gmail.com
In-Reply-To: <57518fd10804010249h4fe43bbfu64cf9576ca2edcf3@mail.gmail.com>

```
On 4/1/08, Jonathan del Strother <maillist@steelskies.com> wrote:
> I can't seem to send patches via gmail without it adding spurious line
>  breaks -  eg http://article.gmane.org/gmane.comp.version-control.git/78407.
>   I thought this was supposed to be possible...  All I'm doing is
>  copying the contents of my patch, then in Gmail, clicking Compose
>  Mail, make sure it's in Plain Text rather than Rich Formatting mode,
>  paste my patch, and moving the mail header lines out of the message
>  body.
>
>  What am I missing?
>  Jonathan del Strother

Try git send-email w/ msmtp:
http://git.or.cz/gitwiki/GitTips#head-a015948617d9becbdc9836776f96ad244ba87cb8


-- 
    David

```

## Jonathan del Strother, 2008-04-01 10:51

Subject: Re: Sending patches via gmail
Message-ID: <57518fd10804010351x341ba728i69cfcad8f3909d6a@mail.gmail.com>
URL: https://gitlist.dev/e/57518fd10804010351x341ba728i69cfcad8f3909d6a%40mail.gmail.com
In-Reply-To: <402731c90804010309w6a27d2d1t2df25ac41fff96b9@mail.gmail.com>

```
On Tue, Apr 1, 2008 at 11:09 AM, David Aguilar <davvid@gmail.com> wrote:
> On 4/1/08, Jonathan del Strother <maillist@steelskies.com> wrote:
>
>
> > I can't seem to send patches via gmail without it adding spurious line
>  >  breaks -  eg http://article.gmane.org/gmane.comp.version-control.git/78407.
>  >   I thought this was supposed to be possible...  All I'm doing is
>  >  copying the contents of my patch, then in Gmail, clicking Compose
>  >  Mail, make sure it's in Plain Text rather than Rich Formatting mode,
>  >  paste my patch, and moving the mail header lines out of the message
>  >  body.
>  >
>  >  What am I missing?
>  >  Jonathan del Strother
>
>
>
> Try git send-email w/ msmtp:
>  http://git.or.cz/gitwiki/GitTips#head-a015948617d9becbdc9836776f96ad244ba87cb8
>

...which seems to work ok, except for the fact that the From line in
my patch (the output of git format-patch) then appears at the top of
my message body in the resulting email (from git send-email).
Deleting the From line from the patch seems to make everything work as
expected.  Any ideas what's going on there?

```

## Jeff King, 2008-04-01 11:03

Subject: Re: Sending patches via gmail
Message-ID: <20080401110355.GA3777@coredump.intra.peff.net>
URL: https://gitlist.dev/e/20080401110355.GA3777%40coredump.intra.peff.net
In-Reply-To: <57518fd10804010351x341ba728i69cfcad8f3909d6a@mail.gmail.com>

```
On Tue, Apr 01, 2008 at 11:51:38AM +0100, Jonathan del Strother wrote:

> ...which seems to work ok, except for the fact that the From line in
> my patch (the output of git format-patch) then appears at the top of
> my message body in the resulting email (from git send-email).
> Deleting the From line from the patch seems to make everything work as
> expected.  Any ideas what's going on there?

send-email will create a "from" line in the body of the message if the
"sender" (using --from, or answering "Who should the emails appear to be
from") doesn't match the patch's author (the "From:" line in the
generated patch, which comes from the author field of the commit).
The line is interpeted by git-am to properly credit the original author.

It looks like you are committing as jon.delStrother@bestbefore.tv,
but sending the emails as maillist@steelskies.com.

-Peff

```
