From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44302 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: smtpmail-auth-credentials from authinfo Date: Fri, 19 Apr 2002 11:41:06 -0400 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1019233757 17861 127.0.0.1 (19 Apr 2002 16:29:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 19 Apr 2002 16:29:17 +0000 (UTC) Cc: ding , Return-path: Original-Received: from hermes.netfonds.no ([195.204.10.138]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16ybAr-0003l7-00 for ; Fri, 19 Apr 2002 18:23:49 +0200 Original-Received: from malifon.math.uh.edu (malifon.math.uh.edu [129.7.128.13]) by hermes.netfonds.no (8.10.1/8.9.3) with ESMTP id g3JFgGf18015 for ; Fri, 19 Apr 2002 17:42:16 +0200 (CEST) Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16yaWF-0004Jf-00; Fri, 19 Apr 2002 10:41:51 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 19 Apr 2002 10:42:02 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id KAA04344 for ; Fri, 19 Apr 2002 10:41:50 -0500 (CDT) Original-Received: (qmail 24137 invoked by alias); 19 Apr 2002 15:41:34 -0000 Original-Received: (qmail 24132 invoked from network); 19 Apr 2002 15:41:34 -0000 Original-Received: from liilmtlssm01.mailtask.com (208.203.59.25) by gnus.org with SMTP; 19 Apr 2002 15:41:34 -0000 Original-Received: from onyx.nimbus.northernlight.com ([10.128.22.65]) by LIILMTLSSM01.mailtask.com with Microsoft SMTPSVC(5.0.2195.3779); Fri, 19 Apr 2002 10:41:07 -0500 Original-To: Simon Josefsson 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-Followup-To: Simon Josefsson , ding , In-Reply-To: (Simon Josefsson's message of "Fri, 19 Apr 2002 16:47:54 +0200 (CEST)") Original-Lines: 38 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i386-redhat-linux-gnu) X-OriginalArrivalTime: 19 Apr 2002 15:41:07.0977 (UTC) FILETIME=[9F8AFF90:01C1E7B8] Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:44302 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:44302 On Fri, 19 Apr 2002, jas@extundo.com wrote: > On Fri, 19 Apr 2002, Ted Zlatanov wrote: > >> I had to write this for my own authentication (so I could share my >> .gnus.el). I didn't want my smtpmail-auth-credentials to be in the >> clear, and it seemed like a better idea to do it through authinfo. > > You can set `smtpmail-auth-credentials' from some other place than > .gnus.el, and protect that file in the same way you protect > .authinfo. Right, but that increases the number of places I have a cleartext password. I like the idea of the .authinfo file, and it's already supported by most aspects of Gnus. >> Has anyone else done something similar? The solution below >> requires .authinfo lines formatted "machine xyz port 25 login abc >> password ijk" which is, perhaps, too inflexible. Suggestions are >> welcome. .authinfo support should probably go into the next >> smtpmail.el as well, at least as an option. > > Isolating authinfo into a separate package and making it available > for all emacs applications, and then making Gnus and smtpmail use > the new interface, seems like a good idea. Do you want to do it or > should I? It looks like gnus-parse-netrc already does all the work, actually (I looked for authinfo parsing, and missed the netrc parsing functionality). It's much better than what I wrote, it handles all the quoting and optional tokens. Should I extract that to authinfo.el (or netrc.el?) so it can be integrated with smtpmail.el? Also smtpmail.el needs to be patched so it accepts the old-style flat lists and the gnus-parse-netrc style output. Thanks Ted