# [Q] submitting patches from gmail

6 messages from 2008-10-18 to 2008-10-18. Participants: Leo Razoumov, Tuncer Ayaz, Giuseppe Bilotta, Felipe Contreras.
Thread: https://gitlist.dev/t/15950

## Leo Razoumov, 2008-10-18 12:08

Subject: [Q] submitting patches from gmail
Message-ID: <ee2a733e0810180508m466f3ea1i9c63b47177f6e12d@mail.gmail.com>
URL: https://gitlist.dev/e/ee2a733e0810180508m466f3ea1i9c63b47177f6e12d%40mail.gmail.com

```
Hi Everyone,
I wonder what is the preferred way to submit patches from a gmail account.
Google mail auto wraps long lines and there is no way to change this setting.
Safe way would be to use attachments. Are they allowed on git mailing list?

Thanks,
--Leo--

```

## Tuncer Ayaz, 2008-10-18 12:16

Subject: Re: [Q] submitting patches from gmail
Message-ID: <4ac8254d0810180516h56633ed3q8377ddbbbf316bab@mail.gmail.com>
URL: https://gitlist.dev/e/4ac8254d0810180516h56633ed3q8377ddbbbf316bab%40mail.gmail.com
In-Reply-To: <ee2a733e0810180508m466f3ea1i9c63b47177f6e12d@mail.gmail.com>

```
On Sat, Oct 18, 2008 at 2:08 PM, Leo Razoumov <slonik.az@gmail.com> wrote:
> Hi Everyone,
> I wonder what is the preferred way to submit patches from a gmail account.
> Google mail auto wraps long lines and there is no way to change this setting.
> Safe way would be to use attachments. Are they allowed on git mailing list?

I do use git send-mail with msmtp as the SMTP client and smtp.gmail.com as
the host. If you are able to go that route it would solve your problem.

```

## Giuseppe Bilotta, 2008-10-18 12:50

Subject: Re: [Q] submitting patches from gmail
Message-ID: <gdcm3d$f3k$1@ger.gmane.org>
URL: https://gitlist.dev/e/gdcm3d%24f3k%241%40ger.gmane.org
In-Reply-To: <ee2a733e0810180508m466f3ea1i9c63b47177f6e12d@mail.gmail.com>

```
On Saturday 18 October 2008 14:08, Leo Razoumov wrote:

> Hi Everyone,
> I wonder what is the preferred way to submit patches from a gmail account.
> Google mail auto wraps long lines and there is no way to change this setting.
> Safe way would be to use attachments. Are they allowed on git mailing list?

I've been sending patches from gmail for a while without problems. It took me
a while to find a working configruation, but I finally managed to do it using
msmtp. I have

[sendemail]
        smtpserver = /usr/bin/msmtp

in my ~/.gitconfig

and the following ~/.msmtprc

======
# Example for a user configuration file

# Set default values for all following accounts.
defaults
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile ~/.msmtp.log

# My email service
account gmail
host smtp.gmail.com
from yourgmailusername@gmail.com
auth on
user yourgmailusername
password yourgmailpassword

# Set a default account
account default : gmail
=========

And to send patches I just use something like

git send-email --to "git@vger.kernel.org" --cc "whoever" 00*

-- 
Giuseppe "Oblomov" Bilotta

```

## Tuncer Ayaz, 2008-10-18 13:00

Subject: Re: [Q] submitting patches from gmail
Message-ID: <4ac8254d0810180600t7e06d05ya635d60c3e8ec8e6@mail.gmail.com>
URL: https://gitlist.dev/e/4ac8254d0810180600t7e06d05ya635d60c3e8ec8e6%40mail.gmail.com
In-Reply-To: <gdcm3d$f3k$1@ger.gmane.org>

```
On Sat, Oct 18, 2008 at 2:50 PM, Giuseppe Bilotta
<giuseppe.bilotta@gmail.com> wrote:
> On Saturday 18 October 2008 14:08, Leo Razoumov wrote:
>
>> Hi Everyone,
>> I wonder what is the preferred way to submit patches from a gmail account.
>> Google mail auto wraps long lines and there is no way to change this setting.
>> Safe way would be to use attachments. Are they allowed on git mailing list?
>
> I've been sending patches from gmail for a while without problems. It took me
> a while to find a working configruation, but I finally managed to do it using
> msmtp. I have
>
> [sendemail]
>        smtpserver = /usr/bin/msmtp
>
> in my ~/.gitconfig
>
> and the following ~/.msmtprc
>
> ======
> # Example for a user configuration file
>
> # Set default values for all following accounts.
> defaults
> tls on
> tls_trust_file /etc/ssl/certs/ca-certificates.crt
> logfile ~/.msmtp.log
>
> # My email service
> account gmail
> host smtp.gmail.com
> from yourgmailusername@gmail.com
> auth on
> user yourgmailusername
> password yourgmailpassword

as the password is stored in plaintext I prefer
to leave it out and get asked every time I
use mstmp :-).

> # Set a default account
> account default : gmail
> =========
>
> And to send patches I just use something like
>
> git send-email --to "git@vger.kernel.org" --cc "whoever" 00*

```

## Leo Razoumov, 2008-10-18 14:12

Subject: Re: [Q] submitting patches from gmail
Message-ID: <ee2a733e0810180712k42a4dbb6m3d4e9de717a79b53@mail.gmail.com>
URL: https://gitlist.dev/e/ee2a733e0810180712k42a4dbb6m3d4e9de717a79b53%40mail.gmail.com
In-Reply-To: <gdcm3d$f3k$1@ger.gmane.org>

```
Giuseppe,
Thanks for the help!

BTW, what is  /etc/ssl/certs/ca-certificates.crt and how to generate it?

--Leo--

On 10/18/08, Giuseppe Bilotta <giuseppe.bilotta@gmail.com> wrote:
> On Saturday 18 October 2008 14:08, Leo Razoumov wrote:
>
>  > Hi Everyone,
>  > I wonder what is the preferred way to submit patches from a gmail account.
>  > Google mail auto wraps long lines and there is no way to change this setting.
>  > Safe way would be to use attachments. Are they allowed on git mailing list?
>
>
> I've been sending patches from gmail for a while without problems. It took me
>  a while to find a working configruation, but I finally managed to do it using
>  msmtp. I have
>
>  [sendemail]
>         smtpserver = /usr/bin/msmtp
>
>  in my ~/.gitconfig
>
>  and the following ~/.msmtprc
>
>  ======
>  # Example for a user configuration file
>
>  # Set default values for all following accounts.
>  defaults
>  tls on
>  tls_trust_file /etc/ssl/certs/ca-certificates.crt
>  logfile ~/.msmtp.log
>
>  # My email service
>  account gmail
>  host smtp.gmail.com
>  from yourgmailusername@gmail.com
>  auth on
>  user yourgmailusername
>  password yourgmailpassword
>
>  # Set a default account
>  account default : gmail
>  =========
>
>  And to send patches I just use something like
>
>  git send-email --to "git@vger.kernel.org" --cc "whoever" 00*
>
>  --
>  Giuseppe "Oblomov" Bilotta
>
>
>  --
>  To unsubscribe from this list: send the line "unsubscribe git" in
>  the body of a message to majordomo@vger.kernel.org
>  More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

```

## Felipe Contreras, 2008-10-18 14:20

Subject: Re: [Q] submitting patches from gmail
Message-ID: <94a0d4530810180720t417769edi9c64b8d239e77260@mail.gmail.com>
URL: https://gitlist.dev/e/94a0d4530810180720t417769edi9c64b8d239e77260%40mail.gmail.com
In-Reply-To: <ee2a733e0810180712k42a4dbb6m3d4e9de717a79b53@mail.gmail.com>

```
On Sat, Oct 18, 2008 at 5:12 PM, Leo Razoumov <slonik.az@gmail.com> wrote:
> Giuseppe,
> Thanks for the help!
>
> BTW, what is  /etc/ssl/certs/ca-certificates.crt and how to generate it?

Your distro should provide that along with openssl.

-- 
Felipe Contreras

```
