From: Ted Zlatanov <tzz@lifelogs.com>
To: ding@gnus.org
Subject: Re: emacs->gnus merge questions
Date: Mon, 17 Dec 2007 17:03:44 -0600 [thread overview]
Message-ID: <86mys8q5yn.fsf@lifelogs.com> (raw)
In-Reply-To: <86r6hkq60k.fsf@lifelogs.com> (Ted Zlatanov's message of "Mon, 17 Dec 2007 17:02:35 -0600")
[-- Attachment #1: Type: text/plain, Size: 159 bytes --]
On Mon, 17 Dec 2007 17:02:35 -0600 Ted Zlatanov <tzz@lifelogs.com> wrote:
TZ> I am including a patch (not comitted yet) ...
I didn't, but I am now :)
Ted
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: netrc+encrypt.patch --]
[-- Type: text/x-diff, Size: 2207 bytes --]
? netrc+encrypt.patch
Index: encrypt.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/encrypt.el,v
retrieving revision 7.11
diff -u -r7.11 encrypt.el
--- encrypt.el 1 Nov 2007 15:01:11 -0000 7.11
+++ encrypt.el 17 Dec 2007 22:55:28 -0000
@@ -29,11 +29,12 @@
;;; particular aspect.
;;; Use in Gnus like this:
+;;; (require 'encrypt)
;;; (setq
;;; nnimap-authinfo-file "~/.authinfo.enc"
;;; nntp-authinfo-file "~/.authinfo.enc"
;;; smtpmail-auth-credentials "~/.authinfo.enc"
-;;; ;; using the AES256 cipher, feel free to use your own favorite
+;;; ;; GnuPG using the AES256 cipher, feel free to use your own favorite
;;; encrypt-file-alist (quote (("~/.authinfo.enc" (gpg "AES256"))))
;;; password-cache-expiry 600)
@@ -53,7 +54,9 @@
;; autoload password
(eval-and-compile
- (autoload 'password-read "password"))
+ (if (locate-library "password-cache")
+ (require 'password-cache)
+ (require 'password)))
(defgroup encrypt '((password-cache custom-variable)
(password-cache-expiry custom-variable))
Index: netrc.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/netrc.el,v
retrieving revision 7.17
diff -u -r7.17 netrc.el
--- netrc.el 9 Dec 2007 00:04:21 -0000 7.17
+++ netrc.el 17 Dec 2007 22:55:28 -0000
@@ -34,6 +34,10 @@
;;; .netrc and .authinfo rc parsing
;;;
+;; use encrypt if loaded (but netrc-use-encrypt also has to be on)
+(eval-and-compile
+ (autoload 'encrypt-find-model "encrypt")
+ (autoload 'encrypt-insert-file-contents "encrypt"))
(defalias 'netrc-point-at-eol
(if (fboundp 'point-at-eol)
'point-at-eol
@@ -54,8 +58,12 @@
(let ((tokens '("machine" "default" "login"
"password" "account" "macdef" "force"
"port"))
+ (encryption-model (when (bound-and-true-p encrypt-file-alist)
+ (encrypt-find-model file)))
alist elem result pair)
- (insert-file-contents file)
+ (if encryption-model
+ (encrypt-insert-file-contents file encryption-model)
+ (insert-file-contents file))
(goto-char (point-min))
;; Go through the file, line by line.
(while (not (eobp))
next prev parent reply other threads:[~2007-12-17 23:03 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-08 3:24 Miles Bader
2007-12-08 19:38 ` Reiner Steib
2007-12-08 21:19 ` Miles Bader
2007-12-08 21:29 ` Reiner Steib
2007-12-08 23:32 ` Miles Bader
2007-12-08 23:45 ` Miles Bader
2008-02-16 13:24 ` encrypt.el (was: emacs->gnus merge questions) Reiner Steib
2008-02-16 13:26 ` assistant.el " Reiner Steib
2007-12-11 16:22 ` emacs->gnus merge questions Ted Zlatanov
2007-12-17 23:02 ` Ted Zlatanov
2007-12-17 23:03 ` Ted Zlatanov [this message]
2007-12-18 20:25 ` Ted Zlatanov
2007-12-18 22:52 ` encrypt.el glue to PGG library added (was: emacs->gnus merge questions) Ted Zlatanov
2008-02-16 13:12 ` encrypt.el " Reiner Steib
2008-02-28 14:55 ` encrypt.el Ted Zlatanov
2008-02-28 20:28 ` encrypt.el Reiner Steib
2008-03-10 15:06 ` encrypt.el Ted Zlatanov
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=86mys8q5yn.fsf@lifelogs.com \
--to=tzz@lifelogs.com \
--cc=ding@gnus.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.
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).