From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: Opportunistic STARTTLS in smtpmail.el Date: Wed, 01 Jun 2011 08:34:22 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87pqmxvfoh.fsf@lifelogs.com> References: <87k4e8ucw3.fsf@lifelogs.com> <87liyofwxp.fsf@lifelogs.com> <874o5cfui5.fsf@lifelogs.com> <87liyndz5l.fsf@lifelogs.com> <87y61nnpoq.fsf@lifelogs.com> <87fwnuacc5.fsf@lifelogs.com> <878vtmo081.fsf@lifelogs.com> <87tycamhmv.fsf@lifelogs.com> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1306936133 3989 80.91.229.12 (1 Jun 2011 13:48:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Jun 2011 13:48:53 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 01 15:48:49 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QRlmz-0001UG-JB for ged-emacs-devel@m.gmane.org; Wed, 01 Jun 2011 15:48:49 +0200 Original-Received: from localhost ([::1]:42264 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRlmv-0006Ep-Dz for ged-emacs-devel@m.gmane.org; Wed, 01 Jun 2011 09:48:45 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:48524) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRlZM-00021B-Dq for emacs-devel@gnu.org; Wed, 01 Jun 2011 09:34:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRlZG-0000O0-Sw for emacs-devel@gnu.org; Wed, 01 Jun 2011 09:34:44 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:53162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRlZG-0000Nb-5b for emacs-devel@gnu.org; Wed, 01 Jun 2011 09:34:38 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QRlZD-0002IA-5i for emacs-devel@gnu.org; Wed, 01 Jun 2011 15:34:35 +0200 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Jun 2011 15:34:35 +0200 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Jun 2011 15:34:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 37 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 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.50 (gnu/linux) Cancel-Lock: sha1:aJP33SIz89ESW0I26jK6NEZ+SLA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:140025 Archived-At: On Wed, 01 Jun 2011 09:37:43 -0300 Stefan Monnier wrote: >> I think it's necessary no matter what. We've had several suggestions >> (from me, Lars, and Daiki Ueno) for something like what I'm proposing. >> It's definitely useful. >> Speaking of which, I think in addition to gpg: tokens we should support >> crypt: tokens (using the native OS crypt call) and MD4 or some other >> symmetric cipher simple enough to implement in ELisp. GPG is not >> necessarily available or wanted. SM> One more thing: a user which has a ~/.authinfo.gpg but no unencrypted SM> ~/.netrc nor ~/.authinfo should not be prompted for a password (since SM> that would be very annoying, if in the end she doesn't need SM> authentication). If the SMTP server requires authentication, how do we know ~/.authinfo.gpg does NOT have the password we need? If it does not require authentication, `auth-source-search' should not be called. If you find the password prompt for ~/.authinfo.gpg annoying, don't use that file in your `auth-sources' or use proper GPG key encryption, which should not prompt you after you load your keyring. SM> I really think that trying to avoid smtpmail-use-auth is ill-advised. I'm not trying to avoid anything. My goal is to provide a netrc format that freely mixes encrypted and unencrypted data, so you can do a search without decrypting data and for other benefits. Do you see any issues with the format I've proposed? If the format works and everyone likes it, I can make ~/.authinfo the default `auth-sources' backend instead of ~/.authinfo.gpg. You and Lars can do what you like with smtpmail.el; I only need to get involved when you call `auth-source-search'. Ted