From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/71228 Path: news.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.gnus.general Subject: Re: [gnus git] Add ~/.authinfo to the default, since that's probably most useful for users. Date: Mon, 20 Sep 2010 17:53:35 +0200 Organization: not if I can help it Message-ID: References: <87iq238tgr.fsf@lifelogs.com> <87wrqgfnca.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1284998045 13935 80.91.229.12 (20 Sep 2010 15:54:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 20 Sep 2010 15:54:05 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M19601@lists.math.uh.edu Mon Sep 20 17:54:04 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oxigr-00064y-9a for ding-account@gmane.org; Mon, 20 Sep 2010 17:54:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Oxign-0002Pz-Fx; Mon, 20 Sep 2010 10:53:57 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Oxigl-0002Pd-P9 for ding@lists.math.uh.edu; Mon, 20 Sep 2010 10:53:55 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Oxigk-0004Lw-G9 for ding@lists.math.uh.edu; Mon, 20 Sep 2010 10:53:55 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1Oxigj-00054K-00 for ; Mon, 20 Sep 2010 17:53:53 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Oxigh-00061P-5d for ding@gnus.org; Mon, 20 Sep 2010 17:53:51 +0200 Original-Received: from lns-bzn-49f-81-56-191-143.adsl.proxad.net ([81.56.191.143]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Sep 2010 17:53:51 +0200 Original-Received: from rpluim by lns-bzn-49f-81-56-191-143.adsl.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Sep 2010 17:53:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 38 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: lns-bzn-49f-81-56-191-143.adsl.proxad.net Mail-Copies-To: never User-Agent: Gnus/5.110011 (No Gnus v0.11) XEmacs/21.5-b29 (cygwin32) Cancel-Lock: sha1:HiF/7RJT0hO7G9lDiZyOBw3Nduw= X-Spam-Score: -1.0 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:71228 Archived-At: Ted Zlatanov writes: > version of nnimap-credentials (press `C-x C-e' after the closing > parenthesis)? > > (defun nnimap-credentials (address ports) > (let (port credentials) > ;; Request the credentials from all ports, but only query on the > ;; last port if all the previous ones have failed. > (while (and (null credentials) > (setq port (pop ports))) > (setq credentials > (or > (auth-source-user-or-password > '("login" "password") address port nil (null ports)) > (auth-source-user-or-password > '("login") address port nil (null ports))))) > credentials)) > > I don't think the general solution is to return ("myusername" nil) in > such cases. It seems to me that if the application asks for two > authentication tokens, it expects them both to be valid. That version of nnimap-credentials causes me to not get prompted for anything, and the connection to my imap server to fail. The *nnimap buffer contains: 1 NO LOGIN failed. Process *nnimap* kill so I either more code changes are required, or I should use authinfo.gpg (assuming the combination-from-hell of XEmacs & cygwin supports it). Thanks Robert