git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] send-email: explicitly disable authentication

From
Joshua Watt <jpewhacker@gmail.com>
Date
Oct 23, 2018, 02:40 UTC
Message-ID
<CAJdd5GaQtHVX_wCF8D3y4qJ-a6RdMHpv=BGQVM=xfBEe8xEyOw@mail.gmail.com>
In-Reply-To
<xmqqd0s1tsdd.fsf@gitster-ct.c.googlers.com>
On Mon, Oct 22, 2018 at 7:32 PM Junio C Hamano <gitster@pobox.com> wrote:
Show 14 quoted lines
>
> Joshua Watt <jpewhacker@gmail.com> writes:
>
> > It can be necessary to disable SMTP authentication by a mechanism other
> > than sendemail.smtpuser being undefined. For example, if the user has
> > sendemail.smtpuser set globally but wants to disable authentication
> > locally in one repository.
>
> I wonder if it would be more productive to introduce a mechanism
> that can be used to address that use case more directly.  For
> example, would it help to teach "git send-email" that
> sendemail.smtpuser set to a particular value (say '!', or empty
> string if you prefer) is equivalent to the variable unset at all?
>

I'm a little worried that is more likely to break someone's workflow (although, I'm not sure why someone would have such simple username). Using sendemail.smtpauth = "none" is pretty much guaranteed to not break an existing setup because git send-email would previously reject any value that wasn't upper case. I suppose the one disadvantage is that it isn't backward compatible, since setting sendemail.smtpauth to "none" wouldn't work with older versions of git (due to it not being upper case), but I'm not sure how much of a concern that is.

IMHO, setting "" or "!" for sendemail.smtpuser probably isn't any more clear or direct for the end user than my solution.

Previous: Junio C HamanoNext: Joshua Watt
Message 8 of 10 in “send-email: explicitly disable authentication”
  1. send-email: explicitly disable authenticationJoshua Watt, Oct 18, 2018
  2. Eric SunshineOct 18, 2018
  3. Joshua WattOct 18, 2018
  4. Eric SunshineOct 19, 2018
  5. send-email: explicitly disable authenticationJoshua Watt, Oct 22, 2018
  6. Joshua WattOct 22, 2018
  7. Junio C HamanoOct 23, 2018
  8. Joshua WattOct 23, 2018
  9. send-email: explicitly disable authenticationJoshua Watt, Oct 23, 2018
  10. Junio C HamanoOct 25, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.