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

Re: [PATCH v2] send-email: auth plain/login fix

From
Jeff King <peff@peff.net>
Date
Sep 27, 2011, 21:48 UTC
Message-ID
<20110927214817.GD5176@sigill.intra.peff.net>
In-Reply-To
<1317159419-23166-1-git-send-email-zbyszek@in.waw.pl>
On Tue, Sep 27, 2011 at 11:36:59PM +0200, Zbigniew Jędrzejewski-Szmek wrote:
>  v2: - added sign-off as requested, although the patch is as trivial
>        as it gets
>      - the import is performed only if it will be used

Nice, it's much better not to make the dependency required by people who are not using smtp auth, but...

Show 10 quoted lines
> diff --git a/git-send-email.perl b/git-send-email.perl
> index 37dfbe7..5a22d18 100755
> --- a/git-send-email.perl
> +++ b/git-send-email.perl
> @@ -1098,6 +1098,8 @@ X-Mailer: git-send-email $gitversion
>  		}
>  
>  		if (defined $smtp_authuser) {
> +			require Authen::SASL;
> +			Authen::SASL->import(qw(Perl));

What about people who are using smtp auth, but don't need or have Authen::SASL? I.e., shouldn't this be:

  eval {
    require Authen::SASL;
    Authen::SASL->import(qw(Perl));
  }

and if we hit an error, just ignore it and continue without Authen::SASL loaded?

-Peff
Previous: Zbigniew Jędrzejewski-SzmekNext: Zbigniew Jędrzejewski-Szmek
Message 13 of 19 in “git-send-email: Add AUTH LOGIN support”
  1. git-send-email: Add AUTH LOGIN supportJoe Perches, Aug 6, 2011
  2. Junio C HamanoAug 6, 2011
  3. Joe PerchesAug 6, 2011
  4. Joe PerchesAug 19, 2011
  5. Junio C HamanoAug 19, 2011
  6. Joe PerchesAug 19, 2011
  7. Junio C HamanoAug 20, 2011
  8. send-email: auth plain/login fixZbigniew Jędrzejewski-Szmek, Sep 24, 2011
  9. Junio C HamanoSep 26, 2011
  10. Joe PerchesSep 26, 2011
  11. Jakub NarebskiSep 26, 2011
  12. send-email: auth plain/login fixZbigniew Jędrzejewski-Szmek, Sep 27, 2011
  13. Jeff KingSep 27, 2011
  14. send-email: auth plain/login fixZbigniew Jędrzejewski-Szmek, Sep 28, 2011
  15. Junio C HamanoSep 28, 2011
  16. send-email: auth plain/login fixZbigniew Jędrzejewski-Szmek, Sep 29, 2011
  17. Joe PerchesSep 29, 2011
  18. send-email: auth plain/login fixZbigniew Jędrzejewski-Szmek, Sep 29, 2011
  19. Junio C HamanoSep 29, 2011

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.