From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sBZMEOn37F56IQAA0tVLHw (envelope-from ) for ; Fri, 19 Jun 2020 17:37:45 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id SBoFDOn37F6DDAAAbx9fmQ (envelope-from ) for ; Fri, 19 Jun 2020 17:37:45 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DF8B6940222 for ; Fri, 19 Jun 2020 17:37:44 +0000 (UTC) Received: from localhost ([::1]:54972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmKxT-0000dk-OO for larch@yhetil.org; Fri, 19 Jun 2020 13:37:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38242) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmKwy-0000ZV-2O for emacs-orgmode@gnu.org; Fri, 19 Jun 2020 13:37:12 -0400 Received: from ericabrahamsen.net ([52.70.2.18]:36026 helo=mail.ericabrahamsen.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmKww-000145-Aj for emacs-orgmode@gnu.org; Fri, 19 Jun 2020 13:37:11 -0400 Received: from localhost (75-172-112-137.tukw.qwest.net [75.172.112.137]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 8E341FA0AC; Fri, 19 Jun 2020 17:37:02 +0000 (UTC) From: Eric Abrahamsen To: Eric Wong Subject: Re: New mailing list archive at https://orgmode/list/ References: <87mu5hqzur.fsf@ericabrahamsen.net> <87h7vmw7zp.fsf@kyleam.com> <87pnaamarm.fsf@ericabrahamsen.net> <20200608045506.GB20150@dcvr> <87bllol125.fsf@ericabrahamsen.net> <87r1uikw7z.fsf@kyleam.com> <87a71072hc.fsf@ericabrahamsen.net> <875zbo7103.fsf@kyleam.com> <87ftas5m3l.fsf@ericabrahamsen.net> <87lfkjvjvr.fsf@kyleam.com> <20200619080226.GA23830@dcvr> Date: Fri, 19 Jun 2020 10:37:01 -0700 In-Reply-To: <20200619080226.GA23830@dcvr> (Eric Wong's message of "Fri, 19 Jun 2020 08:02:26 +0000") Message-ID: <875zbn554y.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=52.70.2.18; envelope-from=eric@ericabrahamsen.net; helo=mail.ericabrahamsen.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/19 13:37:03 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=ericabrahamsen.net (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: 0.59 X-TUID: FBnfSO2rF+TH --=-=-= Content-Type: text/plain Eric Wong writes: > Kyle Meyer wrote: >> Eric Abrahamsen writes: >> >> > Hey, that works great! It's a bit weird that it still asks for a >> > username and password, I wonder if there's any way to skip that. I've >> > never dealt with anonymous IMAP before -- is there anything in the >> > connection process that explicitly tells us "you don't need to log on"? >> >> The server advertises AUTH=ANONYMOUS as a capability [*], so Gnus could >> detect that and send "AUTHENTICATE ANONYMOUS", I _think_. > > Fwiw, mutt detects AUTH=ANONYMOUS and uses it automatically, > so I think it's reasonable for Gnus and others do the same. Looks like it would be as simple as the attached diff. I have very little confidence in my understanding of the potential ramifications, though, so I'll open an Emacs bug and see what other people think. Eric --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=nnimap-anonymous.diff diff --git a/lisp/gnus/gnus-registry.el b/lisp/gnus/gnus-registry.el index f306889a7f..ebb1236674 100644 --- a/lisp/gnus/gnus-registry.el +++ b/lisp/gnus/gnus-registry.el @@ -837,6 +837,7 @@ gnus-registry-find-keywords (completing-read "Keyword: " (gnus-registry-keywords) nil t))) (registry-lookup-secondary-value gnus-registry-db 'keyword keyword)) + (defun gnus-registry-register-message-ids () "Register the Message-ID of every article in the group." (unless (gnus-parameter-registry-ignore gnus-newsgroup-name) diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index 3c4e75ede8..18d3cba173 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el @@ -509,7 +509,8 @@ nnimap-open-connection-1 (split-string capabilities))) (unless (string-match-p "[*.] PREAUTH" greeting) (if (not (setq credentials - (if (eq nnimap-authenticator 'anonymous) + (if (or (eq nnimap-authenticator 'anonymous) + (nnimap-capability "AUTH=ANONYMOUS")) (list "anonymous" (message-make-address)) ;; Look for the credentials based on --=-=-=--