From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/77226 Path: news.gmane.org!not-for-mail From: Raphael Kubo da Costa 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 14:56:26 -0300 Message-ID: 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; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: dough.gmane.org 1298483883 6357 80.91.229.12 (23 Feb 2011 17:58:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 23 Feb 2011 17:58:03 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M25558@lists.math.uh.edu Wed Feb 23 18:57:59 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 1PsIyK-0002pd-E9 for ding-account@gmane.org; Wed, 23 Feb 2011 18:57:56 +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 1PsIxJ-0005Fk-5f; Wed, 23 Feb 2011 11:56:53 -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 1PsIxF-0005FM-M9 for ding@lists.math.uh.edu; Wed, 23 Feb 2011 11:56:49 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PsIxE-00030f-AR for ding@lists.math.uh.edu; Wed, 23 Feb 2011 11:56:49 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PsIxC-0003sf-5b for ding@gnus.org; Wed, 23 Feb 2011 18:56:46 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PsIxA-0002Cf-Ld for ding@gnus.org; Wed, 23 Feb 2011 18:56:44 +0100 Original-Received: from 201.82.25.112 ([201.82.25.112]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Feb 2011 18:56:44 +0100 Original-Received: from kubito by 201.82.25.112 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Feb 2011 18:56:44 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Followup-To: gmane.emacs.gnus.general Original-Lines: 48 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 201.82.25.112 User-Agent: KNode/4.4.10 X-Spam-Score: 0.2 (/) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.0000 Ham tokens: 0.000-988--2464h-0s--0d--H*r:sk:1AlnuQ-, 0.000-988--2464h-0s--0d--HX-Spam-Relays-External:80.91.229.12, 0.000-988--2464h-0s--0d--HX-Injected-Via-Gmane:gmane.org, 0.000-988--2464h-0s--0d--H*r:Gmexim, 0.000-988--2464h-0s--0d--HX-Complaints-To:sk:usenet@ Spam tokens: 0.858-1117--11563h-153431s--0d--H*c:ISO-8859-1 Autolearn status: no 0.0 FREEMAIL_FROM Sender email is freemail (kubito[at]gmail.com) 0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is CUSTOM_MED -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 1.2 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.9 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing list 0.0 T_TO_NO_BRKTS_FREEMAIL T_TO_NO_BRKTS_FREEMAIL List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:77226 Archived-At: Ted Zlatanov wrote: > On Wed, 23 Feb 2011 14:00:09 -0300 Raphael Kubo da Costa > wrote: > RKdC> Would it make sense if I could just store the "host", "port" and > "user" RKdC> parameters in ~/.{authinfo,authinfo.gpg,netrc} and then Gnus > would prompt RKdC> me/try to guess the missing parameters? > > It should work. For instance this line: > > machine testserver login tzz > > in the authinfo file matches this: > > (auth-source-search :host "testserver") > > and returns this: > > ((:host "testserver" :user "tzz")) > > In other words, the password is not required for a successful match. If > it doesn't work for you, set `auth-source-debug' to 'trivia and send me > the relevant lines from *Messages*. > > Thanks > Ted This is my ~/.authinfo: machine imap.gmail.com login XXXX port 993 When I lauch Gnus, it asks me if I want to carry on after a failed login attempt. No password was asked. *Messages* shows this: auth-source-search: found 3 backends matching (:max 1 :host ("imap.gmail.com" "Personal") :port ("143" "993" "imap" "imaps") :create t) auth-source-search-backend: got 1 (max 1) in netrc:~/.authinfo matching (:max 1 :host ("imap.gmail.com" "Personal") :port ("143" "993" "imap" "imaps") :create t) auth-source-search: found 1 results (max 1) matching (:max 1 :host ("imap.gmail.com" "Personal") :port ("143" "993" "imap" "imaps") :create t) nnimap (Personal) open error: 'NO (AUTHENTICATIONFAILED) Invalid credentials (Failure)'. Continue? (y or n) Couldn't open server on Personal