From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/77227 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Making Gnus ask my IMAP username and password after the recent auth-source changes Date: Wed, 23 Feb 2011 12:56:48 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87ipwalgun.fsf@lifelogs.com> References: <87sjvq127b.fsf@gmail.com> <878vxhmmvj.fsf@lifelogs.com> <87tyg53tju.fsf@gmail.com> <87ipwj4wu8.fsf@lifelogs.com> <87hbc39vwe.fsf@gmail.com> <87d3mqj36i.fsf@lifelogs.com> <87aahu3fwp.fsf@lifelogs.com> <87pqqq8bfk.fsf@gnus.org> <87zkptw0ws.fsf@lifelogs.com> <87fwrl0wj6.fsf@gnus.org> <87hbbvybwp.fsf@lifelogs.com> <87d3mj3zfs.fsf@gnus.org> <871v2yq040.fsf@lifelogs.com> <87r5ayllt3.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1298487455 26907 80.91.229.12 (23 Feb 2011 18:57:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 23 Feb 2011 18:57:35 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M25559@lists.math.uh.edu Wed Feb 23 19:57:30 2011 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 1PsJtv-00033c-AY for ding-account@gmane.org; Wed, 23 Feb 2011 19:57:27 +0100 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 1PsJta-0005Vc-Hf; Wed, 23 Feb 2011 12:57:06 -0600 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 1PsJtY-0005VH-7T for ding@lists.math.uh.edu; Wed, 23 Feb 2011 12:57:04 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PsJtW-0003Dt-Jx for ding@lists.math.uh.edu; Wed, 23 Feb 2011 12:57:03 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PsJtU-0004pB-DA for ding@gnus.org; Wed, 23 Feb 2011 19:57:00 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PsJtU-0002lZ-7v for ding@gnus.org; Wed, 23 Feb 2011 19:57:00 +0100 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Feb 2011 19:57:00 +0100 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Feb 2011 19:57:00 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 42 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110014 (No Gnus v0.14) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:KrvA4SPewalxc57QuZW63VNKEo0= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:77227 Archived-At: On Wed, 23 Feb 2011 14:56:26 -0300 Raphael Kubo da Costa wrote: RKdC> This is my ~/.authinfo: RKdC> machine imap.gmail.com login XXXX port 993 RKdC> When I lauch Gnus, it asks me if I want to carry on after a failed login RKdC> attempt. No password was asked. *Messages* shows this: RKdC> auth-source-search: found 3 backends matching (:max 1 :host RKdC> ("imap.gmail.com" "Personal") :port ("143" "993" "imap" "imaps") :create t) RKdC> auth-source-search-backend: got 1 (max 1) in netrc:~/.authinfo matching RKdC> (:max 1 :host ("imap.gmail.com" "Personal") :port ("143" "993" "imap" RKdC> "imaps") :create t) RKdC> auth-source-search: found 1 results (max 1) matching (:max 1 :host RKdC> ("imap.gmail.com" "Personal") :port ("143" "993" "imap" "imaps") :create t) RKdC> nnimap (Personal) open error: 'NO (AUTHENTICATIONFAILED) Invalid credentials RKdC> (Failure)'. Continue? (y or n) RKdC> Couldn't open server on Personal nnimap.el should handle the case where the returned info doesn't have a password. There are cases where IMAP servers do not require a password, so it would not be appropriate to ask in `nnimap-credentials'. I think the change needs to be made in `nnimap-login', replacing all instances of `password' with `(nnimap-login-password password)' which could look like this (100% untested): (defmacro nnimap-login-password (password) (setq password (if password password (read-passwd "Password: ")))) This is something that Lars will have to do, though. I don't know that code well enough to say whether it's the right solution; the password prompt should mention the server, user name, and port. And it may make sense to do this prompting for the user name as well. Ted