From: Ted Zlatanov <teodor.zlatanov@divine.com>
Cc: ding <ding@gnus.org>, <scranefield@infoscience.otago.ac.nz>
Subject: Re: smtpmail-auth-credentials from authinfo
Date: Fri, 19 Apr 2002 11:41:06 -0400 [thread overview]
Message-ID: <m31ydbvgq5.fsf@onyx.nimbus.northernlight.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0204191642580.406-100000@yxa.extundo.com> (Simon Josefsson's message of "Fri, 19 Apr 2002 16:47:54 +0200 (CEST)")
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
next prev parent reply other threads:[~2002-04-19 15:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-19 14:21 Ted Zlatanov
2002-04-19 14:47 ` Simon Josefsson
2002-04-19 15:41 ` Ted Zlatanov [this message]
2002-04-19 15:55 ` Simon Josefsson
2002-04-23 15:53 ` Ted Zlatanov
2002-04-23 17:23 ` Simon Josefsson
2002-04-25 19:25 ` Ted Zlatanov
2002-04-19 15:33 ` Kai Großjohann
2002-04-23 21:51 Stephen Cranefield
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m31ydbvgq5.fsf@onyx.nimbus.northernlight.com \
--to=teodor.zlatanov@divine.com \
--cc=ding@gnus.org \
--cc=scranefield@infoscience.otago.ac.nz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).