all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* extract smtpmail data from .authinfo (or .authinfo.gpg)?
@ 2011-08-17  0:56 Tom Roche
  2011-08-17  3:37 ` Vijay Lakshminarayanan
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Tom Roche @ 2011-08-17  0:56 UTC (permalink / raw)
  To: help-gnu-emacs


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>



^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <87d3frx23d.fsf@pobox.com>]

end of thread, other threads:[~2011-09-07  0:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-17  0:56 extract smtpmail data from .authinfo (or .authinfo.gpg)? Tom Roche
2011-08-17  3:37 ` 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>

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.