git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* an error when using 'git send-email'
@ 2011-02-18 11:45 Yongqiang Yang
  2011-02-18 13:51 ` Matthieu Moy
  2011-02-20 16:44 ` Magnus Bäck
  0 siblings, 2 replies; 6+ messages in thread
From: Yongqiang Yang @ 2011-02-18 11:45 UTC (permalink / raw)
  To: git

Hello All,

When I use git 'send-email', I get an error "Command unknown:  'AUTH'
at /usr/bin/git-send-email line 775, <STDIN> line 1".
Is there anyone meet the same error?

-- 
Best Wishes
Yongqiang Yang

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: an error when using 'git send-email'
  2011-02-18 11:45 an error when using 'git send-email' Yongqiang Yang
@ 2011-02-18 13:51 ` Matthieu Moy
  2011-02-20 12:10   ` Yongqiang Yang
  2011-02-20 16:44 ` Magnus Bäck
  1 sibling, 1 reply; 6+ messages in thread
From: Matthieu Moy @ 2011-02-18 13:51 UTC (permalink / raw)
  To: Yongqiang Yang; +Cc: git

Yongqiang Yang <xiaoqiangnk@gmail.com> writes:

> Hello All,
>
> When I use git 'send-email', I get an error "Command unknown:  'AUTH'
> at /usr/bin/git-send-email line 775, <STDIN> line 1".
> Is there anyone meet the same error?

Not me.

Can you give the exact command you're using? Which OS? Which Git
version? If possible, tell us what's on line 775 of
/usr/bin/git-send-email

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: an error when using 'git send-email'
  2011-02-18 13:51 ` Matthieu Moy
@ 2011-02-20 12:10   ` Yongqiang Yang
  0 siblings, 0 replies; 6+ messages in thread
From: Yongqiang Yang @ 2011-02-20 12:10 UTC (permalink / raw)
  To: Matthieu Moy; +Cc: git

On Fri, Feb 18, 2011 at 9:51 PM, Matthieu Moy
<Matthieu.Moy@grenoble-inp.fr> wrote:
>
> Yongqiang Yang <xiaoqiangnk@gmail.com> writes:
>
> > Hello All,
> >
> > When I use git 'send-email', I get an error "Command unknown:  'AUTH'
> > at /usr/bin/git-send-email line 775, <STDIN> line 1".
> > Is there anyone meet the same error?
>
> Not me.
>
> Can you give the exact command you're using? Which OS? Which Git
> version? If possible, tell us what's on line 775 of
> /usr/bin/git-send-email
The commad I used was 'git send-email --to xiaoqiangnk@gmail.com --cc
xxx@xx.xx xxx.patch'.
My OS is debian with linux version  2.6.37-rc2 and git version is 1.5.6.5.

On line 775 of /usr/bin/git-send-email is ' $auth ||= $smtp->auth(
$smtp_authuser, $smtp_authpass ) or die $smtp->message;'


Thank you.
Yongqiang.
>
> --
> Matthieu Moy
> http://www-verimag.imag.fr/~moy/



--
Best Wishes
Yongqiang Yang

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: an error when using 'git send-email'
  2011-02-18 11:45 an error when using 'git send-email' Yongqiang Yang
  2011-02-18 13:51 ` Matthieu Moy
@ 2011-02-20 16:44 ` Magnus Bäck
  2011-02-22 13:30   ` Yongqiang Yang
  1 sibling, 1 reply; 6+ messages in thread
From: Magnus Bäck @ 2011-02-20 16:44 UTC (permalink / raw)
  To: Yongqiang Yang; +Cc: git

On Friday, February 18, 2011 at 12:45 CET,
     Yongqiang Yang <xiaoqiangnk@gmail.com> wrote:

> When I use git 'send-email', I get an error "Command unknown:  'AUTH'
> at /usr/bin/git-send-email line 775, <STDIN> line 1".
> Is there anyone meet the same error?

You seem to have configured a username and password for SMTP
authentication, yet the server Git connects to doesn't support
authentication.

Make sure the SMTP server you've configured Git to use
(sendemail.smtpserver configuration variable) is the right one.
If so, clear the smtpemail.smtpuser and smtpemail.smtppass
variables as you obviously can't use them with the server.

For testing purposes there are options to "git send-email" to
override the values set in the configuration files. Those might
be more convenient to use when testing out new configurations.

-- 
Magnus Bäck                      Opinions are my own and do not necessarily
SW Configuration Manager         represent the ones of my employer, etc.
Sony Ericsson

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: an error when using 'git send-email'
  2011-02-20 16:44 ` Magnus Bäck
@ 2011-02-22 13:30   ` Yongqiang Yang
  2011-02-22 18:48     ` Magnus Bäck
  0 siblings, 1 reply; 6+ messages in thread
From: Yongqiang Yang @ 2011-02-22 13:30 UTC (permalink / raw)
  To: Magnus Bäck; +Cc: git

On Mon, Feb 21, 2011 at 12:44 AM, Magnus Bäck
<magnus.back@sonyericsson.com> wrote:
> On Friday, February 18, 2011 at 12:45 CET,
>     Yongqiang Yang <xiaoqiangnk@gmail.com> wrote:
>
>> When I use git 'send-email', I get an error "Command unknown:  'AUTH'
>> at /usr/bin/git-send-email line 775, <STDIN> line 1".
>> Is there anyone meet the same error?
>
> You seem to have configured a username and password for SMTP
> authentication, yet the server Git connects to doesn't support
> authentication.
>
> Make sure the SMTP server you've configured Git to use
> (sendemail.smtpserver configuration variable) is the right one.
> If so, clear the smtpemail.smtpuser and smtpemail.smtppass
> variables as you obviously can't use them with the server.
Contents in my .gitconfig file are as follows.
[sendemail]
    smtpencryption = tls
    smtpserver = smtp.gmail.com
    smtpuser = xxxxxxx
    smtpserverport = 587

When I remove the line smtpuser.  Git said my config file is not correct.

Thank you.
>
> For testing purposes there are options to "git send-email" to
> override the values set in the configuration files. Those might
> be more convenient to use when testing out new configurations.
>
> --
> Magnus Bäck                      Opinions are my own and do not necessarily
> SW Configuration Manager         represent the ones of my employer, etc.
> Sony Ericsson
>



-- 
Best Wishes
Yongqiang Yang

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: an error when using 'git send-email'
  2011-02-22 13:30   ` Yongqiang Yang
@ 2011-02-22 18:48     ` Magnus Bäck
  0 siblings, 0 replies; 6+ messages in thread
From: Magnus Bäck @ 2011-02-22 18:48 UTC (permalink / raw)
  To: Yongqiang Yang; +Cc: git

On Tuesday, February 22, 2011 at 14:30 CET,
     Yongqiang Yang <xiaoqiangnk@gmail.com> wrote:

> On Mon, Feb 21, 2011 at 12:44 AM, Magnus Bäck
> <magnus.back@sonyericsson.com> wrote:
>
> > You seem to have configured a username and password for SMTP
> > authentication, yet the server Git connects to doesn't support
> > authentication.
> >
> > Make sure the SMTP server you've configured Git to use
> > (sendemail.smtpserver configuration variable) is the right one.
> > If so, clear the smtpemail.smtpuser and smtpemail.smtppass
> > variables as you obviously can't use them with the server.
>
> Contents in my .gitconfig file are as follows.
> [sendemail]
>     smtpencryption = tls
>     smtpserver = smtp.gmail.com
>     smtpuser = xxxxxxx
>     smtpserverport = 587
> 
> When I remove the line smtpuser.  Git said my config file is not
> correct.

According to your previous email you're running Git 1.5.6.5. That
version doesn't support STARTTLS in send-email, only SSL wrappermode.
Unless Gmail supports the latter on port 465 (which I seriously doubt)
you must either upgrade Git to 1.6.0 or later or have send-email submit
the messages to another SMTP host that can relay the message directly to
the final destination or is capable of STARTTLS-based SMTP and thus able
to connect to Gmail on your behalf. Your Git is ancient so I strongly
suggest the upgrade approach.

-- 
Magnus Bäck                      Opinions are my own and do not necessarily
SW Configuration Manager         represent the ones of my employer, etc.
Sony Ericsson

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-02-22 19:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-18 11:45 an error when using 'git send-email' Yongqiang Yang
2011-02-18 13:51 ` Matthieu Moy
2011-02-20 12:10   ` Yongqiang Yang
2011-02-20 16:44 ` Magnus Bäck
2011-02-22 13:30   ` Yongqiang Yang
2011-02-22 18:48     ` Magnus Bäck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).