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

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

From
Jakub Narebski <jnareb@gmail.com>
Date
Sep 26, 2011, 17:24 UTC
Message-ID
<m3fwjjp69m.fsf@localhost.localdomain>
In-Reply-To
<1316879367-1182-1-git-send-email-zbyszek@in.waw.pl>
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> writes:
Show 7 quoted lines
> git send-email was not authenticating properly when communicating over
> TLS with a server supporting only AUTH PLAIN and AUTH LOGIN. This is
> e.g. the standard server setup under debian with exim4 and probably
> everywhere where system accounts are used.
> 
> The solution comes from this forum thread:
> http://www.perlmonks.org/?node_id=904354
Signoff?
Show 15 quoted lines
> ---
>  git-send-email.perl |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git git-send-email.perl git-send-email.perl
> index 37dfbe7..100fbd9 100755
> --- git-send-email.perl
> +++ git-send-email.perl
> @@ -27,6 +27,7 @@ use Term::ANSIColor;
>  use File::Temp qw/ tempdir tempfile /;
>  use File::Spec::Functions qw(catfile);
>  use Error qw(:try);
> +use Authen::SASL qw(Perl);
>  use Git;
>  use MIME::Base64;

Shouldn't we load Authen::SASL only when it is necessary (on demand), rather than forcing everybody who use send-email (even if via sendmail, or with other authentication support)?

We load Net::SMTP::SSL only on demand.  
It would be:
   require Authen::SASL;
   Authen::SASL->import(qw(Perl));
-- 
Jakub Narębski
Previous: Joe PerchesNext: Zbigniew Jędrzejewski-Szmek
Message 11 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.