From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#41951: 28.0.50; Automatically detect AUTH=ANONYMOUS in Gnus nnimap? Date: Sat, 18 Jul 2020 20:14:09 -0700 Message-ID: <87a6zwci2m.fsf@ericabrahamsen.net> References: <871rmb54wu.fsf@ericabrahamsen.net> <87mu3wwbwd.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5963"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 41951@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 19 05:15:10 2020 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 1jwznC-0001S6-M9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Jul 2020 05:15:10 +0200 Original-Received: from localhost ([::1]:49646 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jwznB-0002xF-OI for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Jul 2020 23:15:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56762) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jwzn4-0002x0-DR for bug-gnu-emacs@gnu.org; Sat, 18 Jul 2020 23:15:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48256) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jwzn4-0008JR-4B for bug-gnu-emacs@gnu.org; Sat, 18 Jul 2020 23:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jwzn3-0003qU-VA for bug-gnu-emacs@gnu.org; Sat, 18 Jul 2020 23:15:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Jul 2020 03:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41951 X-GNU-PR-Package: emacs Original-Received: via spool by 41951-submit@debbugs.gnu.org id=B41951.159512845914717 (code B ref 41951); Sun, 19 Jul 2020 03:15:01 +0000 Original-Received: (at 41951) by debbugs.gnu.org; 19 Jul 2020 03:14:19 +0000 Original-Received: from localhost ([127.0.0.1]:59802 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jwzmM-0003pJ-T9 for submit@debbugs.gnu.org; Sat, 18 Jul 2020 23:14:19 -0400 Original-Received: from ericabrahamsen.net ([52.70.2.18]:38592 helo=mail.ericabrahamsen.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jwzmK-0003p6-Nw for 41951@debbugs.gnu.org; Sat, 18 Jul 2020 23:14:17 -0400 Original-Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 0E8CFFA0B2; Sun, 19 Jul 2020 03:14:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1595128451; bh=DAnhSp4F0VJY8M5UsREOfonMtMLwH+jz7lFupYgLy84=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=cA+H6Mz81Iz9KAXfkHOZGEMPD2RZIXKcc5b/Y8qHpHSHHvZCfrE+E7eLcuUvTVrHB RGhANeC3OfWiZmhJMhUAtsYUyPS/QVqM1uFbSABTPChD8e5V8hLupILDvQcFYLKTcK YKC8CecAY5BwlZ52EVqkheTqY3X6NTzklDtF2GNY= In-Reply-To: <87mu3wwbwd.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 19 Jul 2020 03:07:14 +0200") 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:183200 Archived-At: On 07/19/20 03:07 AM, Lars Ingebrigtsen wrote: > Eric Abrahamsen writes: > >> Gnus could figure this out itself and anonymously log in, using the >> attached patch. It seems to work fine, but there might be further >> consequences I haven't thought of. And possibly we'd simply prefer that >> settings like this be a little more explicit for the user? > > Would this interfere with logging in normally with your own user name? I think if we did it this way: (if (or (eq nnimap-authenticator 'anonymous) (and (null nnimap-authenticator) (nnimap-capability "AUTH=ANONYMOUS"))) (list "anonymous" (message-make-address)) ;; normal log in process ) Then we only fall back on anonymous if the user hasn't specified anything explicitly. I haven't yet verified that (null nnimap-authenticator) does the right thing in this case, though. Eric