From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/76866 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: Thu, 17 Feb 2011 05:03:41 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87k4gyj52q.fsf@lifelogs.com> References: <87sjvq127b.fsf@gmail.com> <878vxhmmvj.fsf@lifelogs.com> <87tyg53tju.fsf@gmail.com> <87ipwj4wu8.fsf@lifelogs.com> <87y65fn285.fsf@fastmail.fm> <8762sj4sir.fsf@lifelogs.com> <874o834g2q.fsf@fastmail.fm> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1297940735 24999 80.91.229.12 (17 Feb 2011 11:05:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 17 Feb 2011 11:05:35 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M25205@lists.math.uh.edu Thu Feb 17 12:05:31 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 1Pq1fu-0002my-6r for ding-account@gmane.org; Thu, 17 Feb 2011 12:05:30 +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 1Pq1eS-0005QD-Aa; Thu, 17 Feb 2011 05:04:00 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Pq1eP-0005Pq-Jb for ding@lists.math.uh.edu; Thu, 17 Feb 2011 05:03:57 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Pq1eN-0000m8-VG for ding@lists.math.uh.edu; Thu, 17 Feb 2011 05:03:57 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Pq1eL-0007ZY-P4 for ding@gnus.org; Thu, 17 Feb 2011 12:03:53 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Pq1eK-0001ud-JK for ding@gnus.org; Thu, 17 Feb 2011 12:03:52 +0100 Original-Received: from c-67-186-102-106.hsd1.il.comcast.net ([67.186.102.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Feb 2011 12:03:52 +0100 Original-Received: from tzz by c-67-186-102-106.hsd1.il.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Feb 2011 12:03:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-67-186-102-106.hsd1.il.comcast.net 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.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:MmWAMT3J8AiyevauMetFq61szJI= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:76866 Archived-At: On Wed, 16 Feb 2011 20:15:09 -0500 Matt Lundin wrote: ML> From .authinfo: ML> machine imap.gmail.com login [username] password [password] ML> And from the *Messages* buffer: ML> Opening connection to imap.gmail.com via tls... ML> Opening TLS connection to `imap.gmail.com'... ML> Opening TLS connection with `gnutls-cli --insecure -p imaps imap.gmail.com'...done ML> Opening TLS connection to `imap.gmail.com'...done ML> auth-source-search: found 2 backends matching (:max 1 :host ("gmail" "imap.gmail.com") :port ("143" "993" "imap" "imaps") :create t) ML> Quit trying to open server nnimap+gmail ML> Couldn't open nnimap:gmail ML> Note: I pressed C-g to exit the user/protocol prompt. (Hence the "Quit ML> trying to open"). Because you didn't go through the prompts, I don't know the actual backend that was used (see the second message below). I made a .authinfo.gpg file to test this with this first line: machine imap.gmail.com login x password y And then did (auth-source-search :max 1 :host '("gmail" "imap.gmail.com") :port '("143" "993" "imap" "imaps") :create t) I see in *Messages*: auth-source-search: found 1 backends matching (:max 1 :host ("gmail" "imap.gmail.com") :port ("143" "993" "imap" "imaps") :create t) auth-source-search: found 1 results (max 1/0) in [object auth-source-backend "~/.authinfo.gpg" netrc "~/.authinfo.gpg" t t t auth-source-netrc-create auth-source-netrc-search] matching (:max 1 :host ("gmail" "imap.gmail.com") :port ("143" "993" "imap" "imaps") :create t) ((:host "imap.gmail.com" :user "x" :secret (lambda (&rest --cl-rest--) (apply #[... "J‡" [G19000] 1] ... --cl-rest--)))) So it worked properly for me. Can you make sure you're loading the right auth-source.el, too? Do `M-x eval-buffer' in the open file rather than relying on autoload and require. Ted