From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#57373: 28.1; authinfo keyword smtp-auth does not work Date: Wed, 24 Aug 2022 11:30:27 +0200 Message-ID: <87y1veyong.fsf@gmail.com> References: <87wnay8vs3.fsf@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5229"; mail-complaints-to="usenet@ciao.gmane.io" Cc: John Kehayias To: 57373@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 24 11:42:45 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oQmuK-0001Ez-QM for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Aug 2022 11:42:44 +0200 Original-Received: from localhost ([::1]:37944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQmuJ-0003QA-Lt for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Aug 2022 05:42:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQmj0-0001cc-VI for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 05:31:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55912) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQmj0-0008Sz-Ag for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 05:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oQmiz-0004vj-Ql for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 05:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Aug 2022 09:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57373 X-GNU-PR-Package: emacs Original-Received: via spool by 57373-submit@debbugs.gnu.org id=B57373.166133343718914 (code B ref 57373); Wed, 24 Aug 2022 09:31:01 +0000 Original-Received: (at 57373) by debbugs.gnu.org; 24 Aug 2022 09:30:37 +0000 Original-Received: from localhost ([127.0.0.1]:45661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQmib-0004uz-70 for submit@debbugs.gnu.org; Wed, 24 Aug 2022 05:30:37 -0400 Original-Received: from mail-wr1-f46.google.com ([209.85.221.46]:38761) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQmiY-0004uk-Pm for 57373@debbugs.gnu.org; Wed, 24 Aug 2022 05:30:35 -0400 Original-Received: by mail-wr1-f46.google.com with SMTP id b5so15732207wrr.5 for <57373@debbugs.gnu.org>; Wed, 24 Aug 2022 02:30:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc; bh=L3GYsjHsn4SzedqTvXMdIw0RKbb82YA8uShj6dIMdZ0=; b=IbnqjEJO3Dr3OxhUqesdgJAP94HQBj221egVYmfIvmMqnmFRXHHY0ecFU3QbF6IPy6 23Ie7zD+BqnaqRb1gSApdsBsPlsD0iDBe7XmCD/ZlBQGLnloE+jdbKPk0usBx3BDQiin rKnZQm/JV5T+dV2Om0nBttqWwkhslavS8vfRCPLF4VPwpgMnGvr9v3t0Ev3dDpbFJDfm 6eX1Aku8Peo8f/kIfy2wW44yXBvE/faqv27y1Xp3z14aFk6NonDaoulesBOW9Nm7Plf8 JoJFNz9NoqhkiGr13o3IF1rTPWkmIIY8VYx5y0nWOnlCaXSN4frKXiKqL9eTVkZidZfu nQLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc; bh=L3GYsjHsn4SzedqTvXMdIw0RKbb82YA8uShj6dIMdZ0=; b=1iPApW3p9Yv2uGd10ZynRBaNSVONvPcG4g2ZZ5mL+6LlQiMrTIGtWn+vb+CtKgTP1O mYqCq1e1TY6qZ2wXep2jXX7kq/hzXDRVD0XRNusNIizKVcTyYPGU7sAbItPuzXpe2V5v 60N85JLPzxeR7M6GjrfQ3UE0JhyIfSLQO880tQSfuNYhuk43XDETaRmiJ3zHGG3SzKkU kkjPw5WudZz9KMn/ejm/HaajkcmI1OfdOqYdfZQ2MFUoRoxiZCHeHiCGEG4QI53Nq0+J 9J8Db5eq83WlZ/+kkHACAVU+fQRSkxe8oBp4l8++S6pI930AOO071koYDWHTkP6NValv /w5w== X-Gm-Message-State: ACgBeo0HcIFByP0QPBep0trxtRGlgwtzzCQXcvADGL/dxwKj3LlPMimi k8VBJK+zTHOYpYZXbIFdvjg= X-Google-Smtp-Source: AA6agR4FsfBaRc6Hk2hALRzvl/LdrW8IgaMLVQMZWGOjwI7268QWA9fop8XrCMBrD1eP+etbJB1Tvg== X-Received: by 2002:a5d:67c6:0:b0:225:2a3e:6384 with SMTP id n6-20020a5d67c6000000b002252a3e6384mr15296349wrw.23.1661333428712; Wed, 24 Aug 2022 02:30:28 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:5c0f:9579:1eb8:85f9]) by smtp.gmail.com with ESMTPSA id j11-20020a5d452b000000b002255aa7fef9sm7807686wra.106.2022.08.24.02.30.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Aug 2022 02:30:28 -0700 (PDT) In-Reply-To: <87wnay8vs3.fsf@protonmail.com> (John Kehayias via's message of "Tue, 23 Aug 2022 22:01:10 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:240595 Archived-At: >>>>> On Tue, 23 Aug 2022 22:01:10 +0000, John Kehayias via "Bug reports for GNU Emacs, the Swiss army knife of text editors" said: John> I believe the problem is that in smtpmail-try-auth-methods John> the smtp-auth keyword is read in by auth-source-search as a John> string, while the call to smtpmail-try-auth-method that uses John> it all match with eql, eg. as (eql 'plain). Yep. John> I have tried different ways to get the smtp-auth value read John> differently in my authinfo, to no avail. Looking back at the John> devel mailing list, there was some confusion that this John> feature needed plstore, but in the end did not: John> John> I can confirm that reading the authinfo does provide the John> smtp-auth keyword, it just won't match any method to call. John> Perhaps there is a different format for specifying smtp-auth that I didn't find? auth-source search always returns a plist containg strings as the key values. Does the following work for you diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el index c2f8f27377..8573532eac 100644 --- a/lisp/mail/smtpmail.el +++ b/lisp/mail/smtpmail.el @@ -577,7 +577,7 @@ smtpmail-try-auth-methods (stringp result)) (setq result (catch 'done (smtpmail-try-auth-method - process (pop mechs) user password)))) + process (intern-soft (pop mechs)) user password)))) ;; A string result is an error. (if (stringp result) (progn Robert --