emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: Eric Wong <e@yhbt.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: New mailing list archive at https://orgmode/list/
Date: Fri, 19 Jun 2020 10:37:01 -0700	[thread overview]
Message-ID: <875zbn554y.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <20200619080226.GA23830@dcvr> (Eric Wong's message of "Fri, 19 Jun 2020 08:02:26 +0000")

[-- Attachment #1: Type: text/plain, Size: 874 bytes --]

Eric Wong <e@yhbt.net> writes:

> Kyle Meyer <kyle@kyleam.com> 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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: nnimap-anonymous.diff --]
[-- Type: text/x-patch, Size: 1140 bytes --]

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

  reply	other threads:[~2020-06-19 17:37 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-05  7:47 Bastien
2020-06-05  8:43 ` Marco Wahl
2020-06-06  8:15   ` Bastien
2020-06-05  9:39 ` Eric S Fraga
2020-06-05 10:51   ` Bastien
2020-06-05 11:24     ` Diego Zamboni
2020-06-05 14:04       ` Bastien
2020-06-05 15:47 ` Eric Abrahamsen
2020-06-08  3:29   ` Kyle Meyer
2020-06-08  4:39     ` Eric Abrahamsen
2020-06-08  4:55       ` Eric Wong
2020-06-12 16:08         ` Eric Abrahamsen
2020-06-14  6:17           ` Kyle Meyer
2020-06-18 16:39             ` Eric Abrahamsen
2020-06-18 17:11               ` Kyle Meyer
2020-06-18 17:18                 ` Eric Abrahamsen
2020-06-18 17:43                   ` Colin Baxter
2020-06-19  3:01                   ` Kyle Meyer
2020-06-19  8:02                     ` Eric Wong
2020-06-19 17:37                       ` Eric Abrahamsen [this message]
2020-06-08  4:47     ` Eric Wong
2020-08-14 10:39 ` mailing list archive link in FAQ Maxim Nikulin
2020-08-14 11:16   ` Maxim Nikulin
2020-08-15 20:25     ` Kyle Meyer
2020-08-17 16:01       ` Maxim Nikulin
2020-08-17 23:55         ` Kyle Meyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875zbn554y.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=e@yhbt.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).