all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tom Roche <Tom_Roche@pobox.com>
To: help-gnu-emacs@gnu.org,
Subject: extract smtpmail data from .authinfo (or .authinfo.gpg)?
Date: Tue, 16 Aug 2011 20:56:18 -0400	[thread overview]
Message-ID: <87liusrh3h.fsf@pobox.com> (raw)


summary: To send email, I currently use smtpmail and .authinfo: the
latter doesn't store any passwords, but does have hostname, id, and
port. The latter are duplicated in an elisp file I load from my init.el.
I'd prefer to have the latter use, or read the data from, .authinfo:
how to do?

details:

I'm using

GNU Emacs 23.3.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.4)
 of 2011-04-10 on brahms, modified by Debian

on

$ lsb_release -ds
Linux Mint Debian Edition
$ uname -rv
2.6.39-2-amd64 #1 SMP Tue Jul 5 02:51:22 UTC 2011

I send email using plain smtpmail configured by a file name=tlrMail.el
which I load from init.el. Among other things (like

(require 'smtpmail)

) tlrMail loads some SMTP info, e.g.,

(setq foo-smtp-server-port 26)
(setq foo-smtp-server-hostname "smtp.foo.com")
(setq foo-user-mail-id "me")
(setq foo-starttls-credentials
  (list (list foo-smtp-server-hostname foo-smtp-server-port 'nil 'nil)))

where "foo" is like a profile name in some email clients. This works,
but it duplicates data that's also in my .authinfo (e.g.,

machine smtp.foo.com login me port 26

). Is there a way I can make my elisp use .authinfo directly, or scrape
the relevant data from .authinfo? Or better yet, from .authinfo.gpg?
(And I'd appreciate pointers to tutorials regarding use of
.authinfo.gpg, and GPG with smtpmail generally.)

Feel free to reply directly to me as well as the list.
Your suggestions are appreciated, Tom Roche <Tom_Roche@pobox.com>



             reply	other threads:[~2011-08-17  0:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-17  0:56 Tom Roche [this message]
2011-08-17  3:37 ` extract smtpmail data from .authinfo (or .authinfo.gpg)? Vijay Lakshminarayanan
2011-08-17 16:21 ` problem using .authinfo.gpg with smtpmail Tom Roche
2011-08-17 16:47 ` extract smtpmail data from .authinfo (or .authinfo.gpg)? Tom Roche
2011-08-17 18:03   ` Ian Zimmerman
2011-08-26 22:40   ` Tom Roche
2011-09-07  0:33     ` Ian Zimmerman
     [not found] <87d3frx23d.fsf@pobox.com>

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=87liusrh3h.fsf@pobox.com \
    --to=tom_roche@pobox.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.