From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marco Maggi Newsgroups: gmane.emacs.bugs Subject: bug#26307: 25.1; smtpmail hard-coded auth mechanism order does not allow coping with misbehaving servers Date: Sat, 01 Apr 2017 13:12:08 +0200 Message-ID: <87lgrk756f.fsf@poste.it> References: <8737dvdzkm.fsf@poste.it> <0l7f3559yo.fsf@fencepost.gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1491045138 360 195.159.176.226 (1 Apr 2017 11:12:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 1 Apr 2017 11:12:18 +0000 (UTC) Cc: 26307@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 01 13:12:11 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cuGwy-0007F1-Oo for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Apr 2017 13:12:08 +0200 Original-Received: from localhost ([::1]:50712 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cuGx1-0005Dv-Fd for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Apr 2017 07:12:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53596) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cuGww-0005Dp-6A for bug-gnu-emacs@gnu.org; Sat, 01 Apr 2017 07:12:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cuGws-0005Rz-6Z for bug-gnu-emacs@gnu.org; Sat, 01 Apr 2017 07:12:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56898) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cuGws-0005Ri-3R for bug-gnu-emacs@gnu.org; Sat, 01 Apr 2017 07:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cuGwr-0000dG-Rb for bug-gnu-emacs@gnu.org; Sat, 01 Apr 2017 07:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Marco Maggi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Apr 2017 11:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26307 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26307-submit@debbugs.gnu.org id=B26307.14910451022398 (code B ref 26307); Sat, 01 Apr 2017 11:12:01 +0000 Original-Received: (at 26307) by debbugs.gnu.org; 1 Apr 2017 11:11:42 +0000 Original-Received: from localhost ([127.0.0.1]:55097 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cuGwX-0000cc-U3 for submit@debbugs.gnu.org; Sat, 01 Apr 2017 07:11:42 -0400 Original-Received: from relay-avs3.poste.it ([62.241.5.78]:42249 helo=relay-out.poste.it) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cuGwV-0000cP-92 for 26307@debbugs.gnu.org; Sat, 01 Apr 2017 07:11:39 -0400 X-Junkmail-Premium-Raw: score=7/50, refid=2.7.2:2017.4.1.103616:17:7.944, ip=, rules=__HAS_X_LOOP, __HAS_X_MAILER, __IN_REP_TO, __REFERENCES, __TO_MALFORMED_2, __TO_NAME, __TO_NAME_DIFF_FROM_ACC, __HAS_CC_HDR, __BOUNCE_CHALLENGE_SUBJ, __BOUNCE_NDR_SUBJ_EXEMPT, __SUBJ_ALPHA_END, __HAS_FROM, __PHISH_FROM2, __PHISH_FROM_P, __HAS_MSGID, __SANE_MSGID, __MIME_VERSION, __CT, __CT_TEXT_PLAIN, __SUBJ_ALPHA_NEGATE, __NO_HTML_TAG_RAW, BODY_SIZE_700_799, BODYTEXTP_SIZE_3000_LESS, __MIME_TEXT_P1, __MIME_TEXT_ONLY, HTML_00_01, HTML_00_10, BODY_SIZE_5000_LESS, __PHISH_FROM1, IN_REP_TO, MSG_THREAD, __TO_REAL_NAMES, MULTIPLE_REAL_RCPTS, LEGITIMATE_SIGNS, __PHISH_FROM, NO_URI_FOUND, NO_CTA_URI_FOUND, BODY_SIZE_1000_LESS, BODY_SIZE_2000_LESS, __MIME_TEXT_P, REFERENCES, NO_URI_HTTPS, BODY_SIZE_7000_LESS Original-Received: from governatore (93.148.3.217) by relay-out.poste.it (9.0.019.09-1) (authenticated as marco.maggi-ipsu@poste.it) id 58CFFF96001E1D49; Sat, 1 Apr 2017 13:11:37 +0200 Original-Original-Original-Original-Sender: marco.maggi-ipsu@poste.it X-Loop: marco@maggi.it.invalid X-Mailer: GNU Emacs In-Reply-To: marco.maggi-ipsu@poste.it "Fri\, 31 Mar 2017 18\:59\:27 -0400") Original-Lines: 23 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:131165 Archived-At: Glenn Morris wrote: > Marco Maggi wrote: >> (defconst smtpmail-auth-supported '(cram-md5 plain login) >> "List of supported SMTP AUTH mechanisms. >> The list is in preference order.") >> it would be useful to have a public API mechanism to change such order >> in case the server misbehaves when using the cram-m5 method. > Intead of recompiling, you can add to your .emacs: > (with-eval-after-load 'smtpmail > (setq smtpmail-auth-supported '(login cram-md5 plain))) > Perhaps no Emacs change is needed then? But the symbol is defined as a constant, so it would be bad style? It is also undocumented. Ideally one should be able to select such configuration on a per-server basis. -- Marco Maggi