Skip to contentSkip to conversation

How to send patch series without storing them to disk?

DISCUSSION Liu Yubao 2 participants 4 messages Jun 15, 2016

lore
Share & tools
lore

Liu Yubao

author
#0 lore raw

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.

#1 lore raw
Quoted 16 lines · Liu Yubao

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
Quoted 4 lines

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

author
#2 lore raw
Quoted 9 lines · Ian Hilt
Quoted 8 lines · Liu Yubao

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
Quoted 7 lines
Quoted 4 lines

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.

Quoted 3 lines

Ian

#3 lore raw
In reply to Liu Yubao
Quoted 7 lines · Liu Yubao

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