# How to send patch series without storing them to disk?

4 messages from 2008-11-03 to 2008-11-04. Participants: Liu Yubao, Ian Hilt.
Thread: https://gitlist.dev/t/16149

## Liu Yubao, 2008-11-03 09:33

Subject: How to send patch series without storing them to disk?
Message-ID: <490EC57E.4080200@gmail.com>
URL: https://gitlist.dev/e/490EC57E.4080200%40gmail.com

```
Hi,

I want to send patches like this:

  git format-patch --stdout --no-color -C --thread -n $oldrev..$newrev | ...send...

It seems git-send-email can't read email from stdin.


I tried to send one patch using git-send-email, it reported "Syntax: AUTH mechanism".
  git send-email --from <myemail> --to <my-another-email> \
                 --smtp-pass <mypass> --smtp-user <myaccount> \
                 --smtp-server <the-smtp-server> \
                 --smtp-encryption auth          \
                 0001-just-a-test.patch

The parameters about smtp are right, I tested with msmtp. What's wrong?

I have MIME::Base64 and Authen::SASL installed and the smtp server doesn't use
ssl and tls.

```

## Ian Hilt, 2008-11-04 03:50

Subject: Re: How to send patch series without storing them to disk?
Message-ID: <alpine.LFD.2.00.0811032242080.1791@sys-0.hiltweb.site>
URL: https://gitlist.dev/e/alpine.LFD.2.00.0811032242080.1791%40sys-0.hiltweb.site
In-Reply-To: <490EC57E.4080200@gmail.com>

```
On Mon, 3 Nov 2008, Liu Yubao wrote:
> Hi,
> 
> I want to send patches like this:
> 
>   git format-patch --stdout --no-color -C --thread -n $oldrev..$newrev | ...send...
> 
> It seems git-send-email can't read email from stdin.
> 
> 
> I tried to send one patch using git-send-email, it reported "Syntax: AUTH mechanism".
>   git send-email --from <myemail> --to <my-another-email> \
>                  --smtp-pass <mypass> --smtp-user <myaccount> \
>                  --smtp-server <the-smtp-server> \
>                  --smtp-encryption auth          \
>                  0001-just-a-test.patch
> 
> The parameters about smtp are right, I tested with msmtp. What's wrong?
> 
> I have MIME::Base64 and Authen::SASL installed and the smtp server doesn't use
> ssl and tls.

Try removing --smtp-encryption and add --envelope-sender <youremail>.


	Ian

```

## Ian Hilt, 2008-11-04 04:04

Subject: Re: How to send patch series without storing them to disk?
Message-ID: <alpine.LFD.2.00.0811032259220.1791@sys-0.hiltweb.site>
URL: https://gitlist.dev/e/alpine.LFD.2.00.0811032259220.1791%40sys-0.hiltweb.site
In-Reply-To: <490EC57E.4080200@gmail.com>

```
On Mon, 3 Nov 2008, Liu Yubao wrote:
> Hi,
> 
> I want to send patches like this:
> 
>   git format-patch --stdout --no-color -C --thread -n $oldrev..$newrev | ...send...
> 
> It seems git-send-email can't read email from stdin.

Currently there is a discussion on the git mailing list concerning a way
to make the following possible:

    git send-email $oldrev..$newrev

Here's some more information,

  <http://marc.info/?l=git&w=2&r=1&s=git+send-email&q=b>


	Ian

```

## Liu Yubao, 2008-11-04 06:01

Subject: Re: How to send patch series without storing them to disk?
Message-ID: <490FE545.9000106@gmail.com>
URL: https://gitlist.dev/e/490FE545.9000106%40gmail.com
In-Reply-To: <alpine.LFD.2.00.0811032242080.1791@sys-0.hiltweb.site>

```
Ian Hilt wrote:
> On Mon, 3 Nov 2008, Liu Yubao wrote:
>> Hi,
>> I tried to send one patch using git-send-email, it reported "Syntax: AUTH mechanism".
>>   git send-email --from <myemail> --to <my-another-email> \
>>                  --smtp-pass <mypass> --smtp-user <myaccount> \
>>                  --smtp-server <the-smtp-server> \
>>                  --smtp-encryption auth          \
>>                  0001-just-a-test.patch
>>
>> The parameters about smtp are right, I tested with msmtp. What's wrong?
>>
>> I have MIME::Base64 and Authen::SASL installed and the smtp server doesn't use
>> ssl and tls.
> 
> Try removing --smtp-encryption and add --envelope-sender <youremail>.
> 

I traced the related Perl modules and found Authen::SASL in Ubuntu Gutsy is buggy,
the problem is resolved after I install the module from CPAN.

> 
> 	Ian
> 

```
