GNU bug report logs -
#41951
28.0.50; Automatically detect AUTH=ANONYMOUS in Gnus nnimap?
Previous Next
Reported by: Eric Abrahamsen <eric <at> ericabrahamsen.net>
Date: Fri, 19 Jun 2020 17:42:01 UTC
Severity: normal
Found in version 28.0.50
Done: Eric Abrahamsen <eric <at> ericabrahamsen.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Eric Abrahamsen <eric <at> ericabrahamsen.net> writes:
> 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.
The code now is:
(if (not (setq credentials
(if (eq nnimap-authenticator 'anonymous)
(list "anonymous"
(message-make-address))
;; Look for the credentials based on
;; the virtual server name and the address
(nnimap-credentials
(gnus-delete-duplicates
(list server nnimap-address))
ports
nnimap-user))))
That call to nnimap-credentials looks into the .authinfo file, and if
the password is present there, it uses it.
So at the very least, the auto-anonymous thing would have to be reversed
in priority -- after the call to nnimap-credentials.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 4 years and 308 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.