From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/80855 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: smtpmail authentication again Date: Tue, 10 Jan 2012 09:37:39 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87wr8zei8c.fsf@lifelogs.com> References: <87d3awtgda.fsf@lifelogs.com> <878vlktfy6.fsf@lifelogs.com> <874nw7slnv.fsf@lifelogs.com> <87fwfqouk3.fsf@lifelogs.com> Reply-To: ding@gnus.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1326206336 10900 80.91.229.12 (10 Jan 2012 14:38:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 Jan 2012 14:38:56 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M29137@lists.math.uh.edu Tue Jan 10 15:38:53 2012 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 1Rkcqh-0004bf-N6 for ding-account@gmane.org; Tue, 10 Jan 2012 15:38:52 +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 1Rkcpw-0007JY-Ud; Tue, 10 Jan 2012 08:38:04 -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 1Rkcpu-0007JM-Bb for ding@lists.math.uh.edu; Tue, 10 Jan 2012 08:38:02 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1Rkcpq-0000Yr-Nh for ding@lists.math.uh.edu; Tue, 10 Jan 2012 08:37:59 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Rkcpo-0001qt-MA for ding@gnus.org; Tue, 10 Jan 2012 15:37:56 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Rkcpm-00043l-Je for ding@gnus.org; Tue, 10 Jan 2012 15:37:54 +0100 Original-Received: from c-76-28-40-19.hsd1.vt.comcast.net ([76.28.40.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Jan 2012 15:37:54 +0100 Original-Received: from tzz by c-76-28-40-19.hsd1.vt.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Jan 2012 15:37:54 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 24 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-76-28-40-19.hsd1.vt.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" Mail-Copies-To: never User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) Cancel-Lock: sha1:P0n/YPzhCMNc1wc8EVgYuXuHbys= X-Spam-Score: -4.9 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:80855 Archived-At: On Tue, 10 Jan 2012 03:34:43 +0100 Richard Riley wrote: RR> Thanks ted. I'll try to use this then to store my erc credentials in gpg RR> file. Strikes me as the srt of thing that would greatly benefit from RR> little wrappers for the commone usage as simple as RR> getUserForHost("host"); RR> getPassForHost("host"); (CamelCase? Horror!) That would hide the search API, especially that you can get multiple answers and connection parameters for a query. End users are not supposed to use auth-source directly, and packages will almost always want the complex search. Also getPass or whatever it's called will expose the password, whereas now it's wrapped in a lexical-let so you can't see it easily until you're ready to use it. I understand the benefit of simplicity, though. Hmmm. Besides ERC, where would you use the simpler functions? Ted