threads / discuss / 16149

How to send patch series without storing them to disk?

Subject: How to send patch series without storing them to disk?

## tl;dr

4 messages between Nov 3, 2008 and Nov 4, 2008.

replies: 3people: 2as markdown or json

Liu Yubao· Nov 3, 2008, 09:33 UTC · lore
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· Nov 4, 2008, 03:50 UTC · re: Liu Yubao · lore

Re: How to send patch series without storing them to disk?

On Mon, 3 Nov 2008, Liu Yubao wrote:
Show 20 quoted lines
> 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
Liu Yubao· Nov 4, 2008, 06:01 UTC · re: Ian Hilt · lore

Re: How to send patch series without storing them to disk?

Ian Hilt wrote:
Show 16 quoted lines
> 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
> 
Ian Hilt· Nov 4, 2008, 04:04 UTC · re: Liu Yubao · lore

Re: How to send patch series without storing them to disk?

On Mon, 3 Nov 2008, Liu Yubao wrote:
Show 7 quoted lines
> 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

← back to recent threads