From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/77866 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: auth-source problem Date: Thu, 17 Mar 2011 06:04:43 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87d3lqypmc.fsf@lifelogs.com> References: <847hcb8wrc.fsf@aol.com> <877hcbxk4r.fsf@lifelogs.com> <8439mxxbhs.fsf@aol.com> <874o7cqptv.fsf@lifelogs.com> <84r5afwp83.fsf@aol.com> <87ipvrkm31.fsf@lifelogs.com> <841v2czy8c.fsf@aol.com> <87sjus9pmp.fsf@lifelogs.com> <84k4g3oah7.fsf@aol.com> <871v2bi0aa.fsf@lifelogs.com> <84y64e4eaa.fsf@aol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1300359924 12859 80.91.229.12 (17 Mar 2011 11:05:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 17 Mar 2011 11:05:24 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M26184@lists.math.uh.edu Thu Mar 17 12:05:20 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 1Q0B14-0001er-RN for ding-account@gmane.org; Thu, 17 Mar 2011 12:05:19 +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 1Q0B0z-0007qK-C1; Thu, 17 Mar 2011 06:05:13 -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 1Q0B0x-0007q3-Rt for ding@lists.math.uh.edu; Thu, 17 Mar 2011 06:05:11 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Q0B0v-0008E0-Ke for ding@lists.math.uh.edu; Thu, 17 Mar 2011 06:05:11 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Q0B0u-00008p-Tt for ding@gnus.org; Thu, 17 Mar 2011 12:05:08 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q0B0r-0001We-6j for ding@gnus.org; Thu, 17 Mar 2011 12:05:05 +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 Mar 2011 12:05:05 +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 Mar 2011 12:05:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 48 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.110014 (No Gnus v0.14) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:WJi5Lql7dsILBFKK05ETUAMMDM0= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:77866 Archived-At: On Wed, 16 Mar 2011 23:27:41 -0400 nyc4bos@aol.com wrote: n> Ted Zlatanov writes: >> On Sun, 13 Mar 2011 00:28:20 -0500 nyc4bos@aol.com wrote: n> Before, you were able to specify in your gnus-(secondary)-select-methods: >> n> ... n> (nnimap "aol" n> (nnimap-address "imap.aim.com") n> (nnimap-server-port 993) n> (nnimap-stream ssl) n> (imap-default-user "nyc4bos")) >> >> n> This was when nnimap used imap.el but I think a `nnimap-username' should n> be defined (`nil' as the default, meaning use '(user-login-name)' as per n> auth-source.el if found in authinfo(.gpg), netrc, or `nnimap-username' n> is not set). >> >> Yes, that's how it should work. Let me know if it doesn't. n> I think you need to modify auth-source.el from this: n> (user-login-name)) n> to this: n> (if (not nnimap-username) n> (user-login-name) n> nnimap-username)) n> in order to get the prompting to work. OK, I see now that `nnimap-username' is gone, so my "that's how it should work" is wrong. So the question is, do we bring `nnimap-username' back to make creation easier? I'd say it's not any better to add that variable globally or per nnimap server than to enter the user name directly at that prompt or by editing the netrc file. Either way, I don't think auth-source.el is the right place to add this default. Instead the caller (nnimap.el) should set `auth-source-creation-defaults' if it knows better what the default created user name should be. Ted