{"thread":{"id":"26546","subject":"an error when using 'git send-email'","startedAt":"2011-02-18T11:45:32Z","lastAt":"2011-02-22T18:48:45Z","messageCount":6,"participants":["Yongqiang Yang","Matthieu Moy","Magnus Bäck"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"161534","messageId":"AANLkTiktO_f9+g4+wSS989a=pFZBgWGcORd_kg4pji-x@mail.gmail.com","threadId":"26546","inReplyTo":null,"subject":"an error when using 'git send-email'","fromName":"Yongqiang Yang","fromEmail":"xiaoqiangnk@gmail.com","sentAt":"2011-02-18T11:45:32Z","receivedAt":"2011-02-18T11:45:32Z","isPatch":false,"sender":{"key":"xiaoqiangnk@gmail.com","avatar":null},"body":"Hello All,\n\nWhen I use git 'send-email', I get an error \"Command unknown:  'AUTH'\nat /usr/bin/git-send-email line 775, <STDIN> line 1\".\nIs there anyone meet the same error?\n\n-- \nBest Wishes\nYongqiang Yang\n"},{"id":"161543","messageId":"vpq7hcxsb77.fsf@bauges.imag.fr","threadId":"26546","inReplyTo":"AANLkTiktO_f9+g4+wSS989a=pFZBgWGcORd_kg4pji-x@mail.gmail.com","subject":"Re: an error when using 'git send-email'","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2011-02-18T13:51:08Z","receivedAt":"2011-02-18T13:51:08Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Yongqiang Yang <xiaoqiangnk@gmail.com> writes:\n\n> Hello All,\n>\n> When I use git 'send-email', I get an error \"Command unknown:  'AUTH'\n> at /usr/bin/git-send-email line 775, <STDIN> line 1\".\n> Is there anyone meet the same error?\n\nNot me.\n\nCan you give the exact command you're using? Which OS? Which Git\nversion? If possible, tell us what's on line 775 of\n/usr/bin/git-send-email\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"},{"id":"161754","messageId":"AANLkTi=1dJ=jZ6KS4CTtyatZJBZ7-kz6vku2ztcYO5V_@mail.gmail.com","threadId":"26546","inReplyTo":"vpq7hcxsb77.fsf@bauges.imag.fr","subject":"Re: an error when using 'git send-email'","fromName":"Yongqiang Yang","fromEmail":"xiaoqiangnk@gmail.com","sentAt":"2011-02-20T12:10:47Z","receivedAt":"2011-02-20T12:10:47Z","isPatch":false,"sender":{"key":"xiaoqiangnk@gmail.com","avatar":null},"body":"On Fri, Feb 18, 2011 at 9:51 PM, Matthieu Moy\n<Matthieu.Moy@grenoble-inp.fr> wrote:\n>\n> Yongqiang Yang <xiaoqiangnk@gmail.com> writes:\n>\n> > Hello All,\n> >\n> > When I use git 'send-email', I get an error \"Command unknown:  'AUTH'\n> > at /usr/bin/git-send-email line 775, <STDIN> line 1\".\n> > Is there anyone meet the same error?\n>\n> Not me.\n>\n> Can you give the exact command you're using? Which OS? Which Git\n> version? If possible, tell us what's on line 775 of\n> /usr/bin/git-send-email\nThe commad I used was 'git send-email --to xiaoqiangnk@gmail.com --cc\nxxx@xx.xx xxx.patch'.\nMy OS is debian with linux version  2.6.37-rc2 and git version is 1.5.6.5.\n\nOn line 775 of /usr/bin/git-send-email is ' $auth ||= $smtp->auth(\n$smtp_authuser, $smtp_authpass ) or die $smtp->message;'\n\n\nThank you.\nYongqiang.\n>\n> --\n> Matthieu Moy\n> http://www-verimag.imag.fr/~moy/\n\n\n\n--\nBest Wishes\nYongqiang Yang\n"},{"id":"161760","messageId":"20110220164427.GA1439@jpl.local","threadId":"26546","inReplyTo":"AANLkTiktO_f9+g4+wSS989a=pFZBgWGcORd_kg4pji-x@mail.gmail.com","subject":"Re: an error when using 'git send-email'","fromName":"Magnus Bäck","fromEmail":"magnus.back@sonyericsson.com","sentAt":"2011-02-20T16:44:27Z","receivedAt":"2011-02-20T16:44:27Z","isPatch":false,"sender":{"key":"magnus.back@sonyericsson.com","avatar":null},"body":"On Friday, February 18, 2011 at 12:45 CET,\n     Yongqiang Yang <xiaoqiangnk@gmail.com> wrote:\n\n> When I use git 'send-email', I get an error \"Command unknown:  'AUTH'\n> at /usr/bin/git-send-email line 775, <STDIN> line 1\".\n> Is there anyone meet the same error?\n\nYou seem to have configured a username and password for SMTP\nauthentication, yet the server Git connects to doesn't support\nauthentication.\n\nMake sure the SMTP server you've configured Git to use\n(sendemail.smtpserver configuration variable) is the right one.\nIf so, clear the smtpemail.smtpuser and smtpemail.smtppass\nvariables as you obviously can't use them with the server.\n\nFor testing purposes there are options to \"git send-email\" to\noverride the values set in the configuration files. Those might\nbe more convenient to use when testing out new configurations.\n\n-- \nMagnus Bäck                      Opinions are my own and do not necessarily\nSW Configuration Manager         represent the ones of my employer, etc.\nSony Ericsson\n"},{"id":"161873","messageId":"AANLkTinssKFSqjk5ZCqzjZQWU_vFMDewY+3FSfR+_xMb@mail.gmail.com","threadId":"26546","inReplyTo":"20110220164427.GA1439@jpl.local","subject":"Re: an error when using 'git send-email'","fromName":"Yongqiang Yang","fromEmail":"xiaoqiangnk@gmail.com","sentAt":"2011-02-22T13:30:17Z","receivedAt":"2011-02-22T13:30:17Z","isPatch":false,"sender":{"key":"xiaoqiangnk@gmail.com","avatar":null},"body":"On Mon, Feb 21, 2011 at 12:44 AM, Magnus Bäck\n<magnus.back@sonyericsson.com> wrote:\n> On Friday, February 18, 2011 at 12:45 CET,\n>     Yongqiang Yang <xiaoqiangnk@gmail.com> wrote:\n>\n>> When I use git 'send-email', I get an error \"Command unknown:  'AUTH'\n>> at /usr/bin/git-send-email line 775, <STDIN> line 1\".\n>> Is there anyone meet the same error?\n>\n> You seem to have configured a username and password for SMTP\n> authentication, yet the server Git connects to doesn't support\n> authentication.\n>\n> Make sure the SMTP server you've configured Git to use\n> (sendemail.smtpserver configuration variable) is the right one.\n> If so, clear the smtpemail.smtpuser and smtpemail.smtppass\n> variables as you obviously can't use them with the server.\nContents in my .gitconfig file are as follows.\n[sendemail]\n    smtpencryption = tls\n    smtpserver = smtp.gmail.com\n    smtpuser = xxxxxxx\n    smtpserverport = 587\n\nWhen I remove the line smtpuser.  Git said my config file is not correct.\n\nThank you.\n>\n> For testing purposes there are options to \"git send-email\" to\n> override the values set in the configuration files. Those might\n> be more convenient to use when testing out new configurations.\n>\n> --\n> Magnus Bäck                      Opinions are my own and do not necessarily\n> SW Configuration Manager         represent the ones of my employer, etc.\n> Sony Ericsson\n>\n\n\n\n-- \nBest Wishes\nYongqiang Yang\n"},{"id":"161905","messageId":"20110222184845.GA17440@jpl.local","threadId":"26546","inReplyTo":"AANLkTinssKFSqjk5ZCqzjZQWU_vFMDewY+3FSfR+_xMb@mail.gmail.com","subject":"Re: an error when using 'git send-email'","fromName":"Magnus Bäck","fromEmail":"magnus.back@sonyericsson.com","sentAt":"2011-02-22T18:48:45Z","receivedAt":"2011-02-22T18:48:45Z","isPatch":false,"sender":{"key":"magnus.back@sonyericsson.com","avatar":null},"body":"On Tuesday, February 22, 2011 at 14:30 CET,\n     Yongqiang Yang <xiaoqiangnk@gmail.com> wrote:\n\n> On Mon, Feb 21, 2011 at 12:44 AM, Magnus Bäck\n> <magnus.back@sonyericsson.com> wrote:\n>\n> > You seem to have configured a username and password for SMTP\n> > authentication, yet the server Git connects to doesn't support\n> > authentication.\n> >\n> > Make sure the SMTP server you've configured Git to use\n> > (sendemail.smtpserver configuration variable) is the right one.\n> > If so, clear the smtpemail.smtpuser and smtpemail.smtppass\n> > variables as you obviously can't use them with the server.\n>\n> Contents in my .gitconfig file are as follows.\n> [sendemail]\n>     smtpencryption = tls\n>     smtpserver = smtp.gmail.com\n>     smtpuser = xxxxxxx\n>     smtpserverport = 587\n> \n> When I remove the line smtpuser.  Git said my config file is not\n> correct.\n\nAccording to your previous email you're running Git 1.5.6.5. That\nversion doesn't support STARTTLS in send-email, only SSL wrappermode.\nUnless Gmail supports the latter on port 465 (which I seriously doubt)\nyou must either upgrade Git to 1.6.0 or later or have send-email submit\nthe messages to another SMTP host that can relay the message directly to\nthe final destination or is capable of STARTTLS-based SMTP and thus able\nto connect to Gmail on your behalf. Your Git is ancient so I strongly\nsuggest the upgrade approach.\n\n-- \nMagnus Bäck                      Opinions are my own and do not necessarily\nSW Configuration Manager         represent the ones of my employer, etc.\nSony Ericsson\n"}]}