From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.bugs Subject: Re: bug#5547: 23.1.92; nnimap not using .authinfo.gpg Date: Wed, 10 Feb 2010 12:40:30 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87zl3h9boh.fsf@lifelogs.com> References: <87bpfycq06.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1265831492 12723 80.91.229.12 (10 Feb 2010 19:51:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Feb 2010 19:51:32 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 10 20:51:30 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NfIau-0000h2-G2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Feb 2010 20:51:28 +0100 Original-Received: from localhost ([127.0.0.1]:38060 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfIat-0002sL-Va for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Feb 2010 14:51:28 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!feeder1-2.proxad.net!news.mixmin.net!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 48 Original-X-Trace: news.albasani.net mZgkKw2+mfxiNvcmfwRBXtJzRvZdmuG0xZB+OYyyODRf0JfeSRlKcS6Bvm2WRNHp4jEB1l7WyYuDBJcx3AYXPpEfe7828IbbMALc8FQgJuJWTPNAbwY6gy695jpB61Ow Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Wed, 10 Feb 2010 18:41:03 +0000 (UTC) X-User-ID: /0hqE/ADpPabx+U+XYMpgLkQ6KLWXexyE1dREvpZyqk= 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" Cancel-Lock: sha1:gOMWBpse2NT5g9z9SEGTYqXxgEc= sha1:Fmftz61byykLKTOdQDp1me4qCQQ= User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.90 (gnu/linux) X-NNTP-Posting-Host: o2ZP6p74th3U3B3OE/XGchuoXB7boCiX/BwzDO4hSuY= Original-Xref: news.stanford.edu gnu.emacs.bug:63535 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35024 Archived-At: On Tue, 09 Feb 2010 23:17:35 +0000 Leo wrote: L> On 2010-02-09 16:50 +0000, Ted Zlatanov wrote: >> - set auth-source-debug to t and look in *Messages*. Is it accessing >> the .gpg file and opening it? What values does it print for the >> username and password? L> Opening nnimap server on gmail-web... L> imap: Connecting to imap.gmail.com... L> imap: Opening SSL connection with `openssl s_client -quiet -ssl3 -connect %s:%p'...done L> Waiting for response from imap.gmail.com...done L> Parsing authinfo file `~/.authinfo'. L> auth-source-user-or-password: get (login password) for gmail-web (993) L> /Users/PhD/.authinfo: 0% (0/139) L> /Users/PhD/.authinfo: 100% (139/139) L> auth-source-user-or-password: found (login password)=SECRET for gmail-web (993) L> imap: Authenticating to `imap.gmail.com' using `login'... L> imap: Plaintext authentication... L> byte-code: End of buffer [4 times] L> Quit trying to open server nnimap+gmail-web L> Opening nnimap server on gmail-web...failed It may be a bug but I'm not sure where it's coming from. It may be that nnimap-open-connection is not prioritizing auth-source over nnimap-authinfo-file. Can you make sure nnimap-authinfo-file is nil? Does it still fail in that case? Finally, check (auth-source-pick "any server" "any port") What does it return? The log messages are impying auth-source is checking ~/.authinfo. If none of this helps, look in nnimap-open-connection and trace the sequence of events, it's pretty clear how it happens. >> - try with port "imaps" and without a port L> Where to set the port? In the authinfo file, where it's '993' currently: machine imap.gmail.com login username@gmail.com password secret port 993 ...but that's not the problem, I think. Try setting auth-source-hide-passwords to nil anyhow and redo the attempt to ensure your password is correct. Ted