From unknown Mon Aug 18 08:27:27 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#24704 <24704@debbugs.gnu.org> To: bug#24704 <24704@debbugs.gnu.org> Subject: Status: 24.5; nnimap: anonymous login to IMAP server not working Reply-To: bug#24704 <24704@debbugs.gnu.org> Date: Mon, 18 Aug 2025 15:27:27 +0000 retitle 24704 24.5; nnimap: anonymous login to IMAP server not working reassign 24704 emacs,gnus submitter 24704 Jonathan Marten severity 24704 normal tag 24704 patch fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 16 01:55:39 2016 Received: (at submit) by debbugs.gnu.org; 16 Oct 2016 05:55:39 +0000 Received: from localhost ([127.0.0.1]:32981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bveQ7-0003Pz-4s for submit@debbugs.gnu.org; Sun, 16 Oct 2016 01:55:39 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37809) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bvded-0000JN-TI for submit@debbugs.gnu.org; Sun, 16 Oct 2016 01:06:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bvdeX-0008HY-5j for submit@debbugs.gnu.org; Sun, 16 Oct 2016 01:06:30 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,RCVD_IN_SORBS_SPAM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44402) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bvdeX-0008HS-2N for submit@debbugs.gnu.org; Sun, 16 Oct 2016 01:06:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvdeV-0008I3-Jf for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2016 01:06:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bvdeS-0008Fc-Ai for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2016 01:06:27 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:52443) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bvdeS-0008Eq-0B for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2016 01:06:24 -0400 Received: from keelhaul.localnet ([81.153.129.162]) by mrelayeu.kundenserver.de (mreue005) with ESMTPSA (Nemesis) id 0LwVC7-1d2MRH3Gil-018JmW; Sun, 16 Oct 2016 07:06:20 +0200 From: Jonathan Marten To: bug-gnu-emacs@gnu.org, bugs@gnus.org Subject: 24.5; nnimap: anonymous login to IMAP server not working Date: Sun, 16 Oct 2016 06:06:19 +0100 Message-ID: <1869270.bxo84pOxvy@keelhaul> Organization: JJM @ Home User-Agent: KMail/4.14.10 (Linux/4.4.6-gentoo; KDE/4.14.14; x86_64; git-458874c; 2016-05-06) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:gJOR/qIJkpL7ESBF7GCKRrvw+yozYbGJsQtfuu1h55jb3U6ud6B TjzSrZ0HVvBjOVWpS2H5jBkWUyOVgH+doKoc436yTx8hwQU0Llyyo+5EcyCwxqtk6gXKD97 LcFmPvTW+K5wPQjn/ZAluiG1z21ezituz3nKNz4Ea4l8c8fsRINtr2yS3snNf7wWGWNz4S4 AXSi/XjtGvwgI3hB3L5Fw== X-UI-Out-Filterresults: notjunk:1;V01:K0:b8JgqFKwb6U=:s72CIoyhledEmz7jJ4fIAd mD9a0LprcFi95vrLHBons8/7fOxC9OizM0SVLPnhR3OgQHZKWRi/B3Q9EdY03H6gBg9n4fEJ6 Skc/Isyw9dvyKlJA7T9ZM6zd2eL8DdyztkDMoebj8uXoMH/Di2nexbkMDUOXAkMkM0fxuqnHB XtPAuRoEl77xeN9tpkTjEFe+FsJ126OV/DjbxD/vERF+wDIbdciYn23fD6XJzp51l2G0r9vqI 3d5yOZBTgitKQZY/OswS8WKwfDxe5bq4ULY/4DCi+/rfaQZ08XoTT+hto+3yMKduTC+fUweyE Dhv3g7W1vynTzdEjLSOEZI/Skts2YrrH8RHk7UG5pvfiER+ChfzaU5NckgrGg80gVYttu8s61 GUe2KC4iaGz/GRTg+knhp/ssUH04Ps0ff5gKPXAzUpQDJg2+SrwsxJ7vwS4YCpCDxSN5KFfEz fZdFGmJM7KIU1s9ObYBETXRRYDsduLSTbyneJdFDnB0gPUzogvz/BT81rkB2bOACEMtZLjrVP ufDQ5NWaCpKni6HFNdIIrIzx5aHuAcysZlcAuUw8Y84Hlh26L9OZSmLj/77TgFApt9Ke0Pdjq 3JFjagT+lz3rZHPGNNieatFkgyyywv1RgpW1/s/Ks3mCvviznBY4YYW/YLI8FhHxlmgJvwwfd TGef1108zCAZtwFAF4tbHlkC/IbaVPOKBMciR42+Afv6x+6DentXOtZlQA6It1sECEO9yKtfA fArooxE+Jw+58FeX X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.5 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 16 Oct 2016 01:55:38 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) Gnus (gnus-version = "Gnus v5.13") configured for anonymous IMAP login does not log in to the IMAP server. Setting in .gnus: (setq gnus-secondary-select-methods '((nnfolder "") (nnimap "imapserv" (nnimap-authenticator anonymous) (nnimap-stream network)))) and starting Gnus produces the echo area messages: Reading /home/jjm/.newsrc.eld... Checking new news... Reading active file via nnfolder... Opening nnfolder server...done nnfolder: Reading incoming mail (no new mail)...done Reading active file via nnfolder...done Opening connection to imapserv... Reading active file via nndraft...done Checking new news...done No news is good news with all of the groups on that server showing "*" for the message counts. Entering one of those groups produces the message "Couldn't open server". In the server buffer the server is shown as: {nnimap:imapnews} (denied) Observing the IMAP network connection with wireshark shows that the CAPABILITY request is sent and returned correctly, but no further IMAP activity takes place after that (in particular, no LOGIN is sent). Stepping through nnimap-login in nnimap.el shows that the parameters passed to it are user="anonymous", password=(email address). The problem seems to be that nnimap-authenticator=anonymous is not handled by any of the conditions in this function, so no login is sent. Applying the patch: --- /usr/share/emacs/24.5/lisp/gnus/nnimap.el 2015-04-02 08:23:06.000000000 +0100 +++ nnimap.el 2016-10-16 05:53:16.043526259 +0100 @@ -504,6 +504,7 @@ ((and (not (nnimap-capability "LOGINDISABLED")) (eq (nnimap-stream-type nnimap-object) 'tls) (or (null nnimap-authenticator) + (eq nnimap-authenticator 'anonymous) (eq nnimap-authenticator 'login))) (nnimap-command "LOGIN %S %S" user password)) ((and (nnimap-capability "AUTH=CRAM-MD5") @@ -523,6 +524,7 @@ (nnimap-wait-for-response sequence))) ((and (not (nnimap-capability "LOGINDISABLED")) (or (null nnimap-authenticator) + (eq nnimap-authenticator 'anonymous) (eq nnimap-authenticator 'login))) (nnimap-command "LOGIN %S %S" user password)) ((and (nnimap-capability "AUTH=PLAIN") handles the anonymous login case (in the same way as plain login) and correctly logs in to the IMAP server. In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.30) of 2016-10-11 on keelhaul Windowing system distributor `The X.Org Foundation', version 11.0.11804000 Configured using: `configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/emacs-24.5-r3 --htmldir=/usr/share/doc/emacs-24.5-r3/html --libdir=/usr/lib64 --program-suffix=-emacs-24 --infodir=/usr/share/info/emacs-24 --localstatedir=/var --enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp --with-gameuser=:gamestat --without-compress-install --with-file-notification=inotify --enable-acl --without-dbus --without-gpm --without-hesiod --without-kerberos --without-kerberos5 --with-xml2 --without-selinux --with-gnutls --without-wide-int --with-zlib --with-sound=alsa --with-x --without-ns --without-gconf --without-gsettings --with-toolkit-scroll-bars --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xpm --with-imagemagick --with-xft --without-libotf --without-m17n-flt --with-x-toolkit=gtk2 GENTOO_PACKAGE=app-editors/emacs-24.5-r3 'CFLAGS=-O2 -march=native -pipe' CPPFLAGS= 'LDFLAGS=-Wl,-O1 -Wl,--as-needed'' Important settings: value of $EMACSLOADPATH: /usr/local/lib/xemacs/local: value of $LC_COLLATE: C value of $LC_MONETARY: en_GB.UTF-8 value of $LC_TIME: C value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t transient-mark-mode: t Recent messages: Saving file /home/jjm/.newsrc... Wrote /home/jjm/.newsrc Saving /home/jjm/.newsrc...done Saving /home/jjm/.newsrc.eld... Saving file /home/jjm/.newsrc.eld... Wrote /home/jjm/.newsrc.eld Saving /home/jjm/.newsrc.eld...done Type C-x 1 to delete the help window, C-M-v to scroll help. Type C-x 4 C-o RET to restore the other window. Load-path shadows: /usr/local/lib/xemacs/local/site-start hides /etc/emacs/site-start Features: (shadow sort emacsbug sendmail qp mm-archive utf-7 goto-addr noutline outline view sgml-mode smiley gnus-cite mail-extr gnus-async gnus-bcklg cl-macs gv edebug gnus-ml disp-table gnus-topic nndraft nnmh nnimap parse-time utf7 nnfolder gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 epg-config mm-view mml-smime smime dig gnus-cache gnus-sum netrc gnutls network-stream starttls tls nntp gnus-group gnus-undo nnmail mail-source nnoo gnus-start gnus-spec gnus-int gnus-range gnus-win gnus gnus-ems nnheader apropos cc-langs cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs thingatpt mule-util cus-theme eieio-custom wid-browse tree-widget cus-edit cus-start cus-load wid-edit log-edit easy-mmode message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log vc vc-dispatcher eieio-opt speedbar sb-image ezimage dframe find-func warnings help-mode easymenu misearch multi-isearch pp vc-sccs server sunkbd redo+ paren browse-url paren-xe blink-paren frame-select auto-set-indent sourcepair riscos url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source eieio byte-opt bytecomp byte-compile cl-extra cl-loaddefs cl-lib cconv eieio-core gnus-util mm-util mail-prsvr password-cache url-vars mailcap compile comint ansi-color ring datetrack edj advice help-fns gnu-compat time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process inotify dynamic-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 281130 29553) (symbols 48 34580 0) (miscs 40 920 689) (strings 32 58901 4711) (string-bytes 1 1883171) (vectors 16 27253) (vector-slots 8 593487 19651) (floats 8 259 795) (intervals 56 4912 0) (buffers 960 51) (heap 1024 40905 12916)) -- From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 12 16:25:25 2018 Received: (at 24704) by debbugs.gnu.org; 12 Apr 2018 20:25:25 +0000 Received: from localhost ([127.0.0.1]:48585 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6imb-0007DW-Dl for submit@debbugs.gnu.org; Thu, 12 Apr 2018 16:25:25 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:38809) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6imZ-0007DI-4k for 24704@debbugs.gnu.org; Thu, 12 Apr 2018 16:25:23 -0400 Received: from 46.67.12.60.tmi.telenormobil.no ([46.67.12.60] helo=corrigan) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1f6imW-0001gZ-BH; Thu, 12 Apr 2018 22:25:22 +0200 Received: from larsi by corrigan with local (Exim 4.89) (envelope-from ) id 1f6imQ-0006PY-OO; Thu, 12 Apr 2018 22:25:14 +0200 From: Lars Ingebrigtsen To: Jonathan Marten Subject: Re: bug#24704: 24.5; nnimap: anonymous login to IMAP server not working References: <1869270.bxo84pOxvy@keelhaul> Date: Thu, 12 Apr 2018 22:25:14 +0200 In-Reply-To: <1869270.bxo84pOxvy@keelhaul> (Jonathan Marten's message of "Sun, 16 Oct 2016 06:06:19 +0100") Message-ID: <87efjkmatx.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 24704 Cc: 24704@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Jonathan Marten writes: > Stepping through nnimap-login in nnimap.el shows that the parameters passed to > it are user="anonymous", password=(email address). The problem seems to be > that nnimap-authenticator=anonymous is not handled by any of the conditions in > this function, so no login is sent. Applying the patch: > > --- /usr/share/emacs/24.5/lisp/gnus/nnimap.el 2015-04-02 08:23:06.000000000 > +0100 > +++ nnimap.el 2016-10-16 05:53:16.043526259 +0100 > @@ -504,6 +504,7 @@ > ((and (not (nnimap-capability "LOGINDISABLED")) > (eq (nnimap-stream-type nnimap-object) 'tls) > (or (null nnimap-authenticator) > + (eq nnimap-authenticator 'anonymous) (etc) Thanks; applied to Emacs 27.1. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 12 16:25:27 2018 Received: (at control) by debbugs.gnu.org; 12 Apr 2018 20:25:28 +0000 Received: from localhost ([127.0.0.1]:48587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6imd-0007Df-Mm for submit@debbugs.gnu.org; Thu, 12 Apr 2018 16:25:27 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:38814) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6ima-0007DP-Nv for control@debbugs.gnu.org; Thu, 12 Apr 2018 16:25:24 -0400 Received: from 46.67.12.60.tmi.telenormobil.no ([46.67.12.60] helo=corrigan) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1f6imY-0001k7-HH for control@debbugs.gnu.org; Thu, 12 Apr 2018 22:25:24 +0200 Received: from larsi by corrigan with local (Exim 4.89) (envelope-from ) id 1f6imS-0006Pb-Ie for control@debbugs.gnu.org; Thu, 12 Apr 2018 22:25:16 +0200 To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #24704 Message-Id: Date: Thu, 12 Apr 2018 22:25:16 +0200 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 24704 fixed close 24704 From unknown Mon Aug 18 08:27:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 11 May 2018 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator