Gnus development mailing list
 help / color / mirror / Atom feed
* Fwd: Re: [gnus-sync.el] epa-file-encrypt-to
@ 2012-10-10 23:05 Philipp Haselwarter
  2012-10-21 13:44 ` Philipp Haselwarter
  0 siblings, 1 reply; 3+ messages in thread
From: Philipp Haselwarter @ 2012-10-10 23:05 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: message/rfc822, Size: 2043 bytes --]

From: Ted Zlatanov <tzz@lifelogs.com>
To: Philipp Haselwarter <philipp@haselwarter.org>
Subject: Re: [gnus-sync.el] epa-file-encrypt-to
Date: Wed, 10 Oct 2012 09:39:37 -0400
Message-ID: <87391mwina.fsf@lifelogs.com>

On Sat, 29 Sep 2012 17:32:55 +0200 Philipp Haselwarter <philipp@haselwarter.org> wrote: 

PH> is there a way prevent epa from querying who to encrypt the
PH> `gnus-sync-backend' file for?

PH> `epa-file-encrypt-to' has to be set locally in the file; if no mechanism
PH> exists I can write a little patch.

Hi Philipp,

I don't think there's a way right now.  I'm completely out of the loop
until end of October due to work, so please send to ding mailing list.

Thanks
Ted

[-- Attachment #2: Type: text/plain, Size: 25 bytes --]




So here's the patch.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0001-gnus-sync.el-gnus-sync-file-encrypt-to-Set-epa-file-.patch --]
[-- Type: text/x-patch, Size: 1460 bytes --]

From 5a14470aeb16b22bc12ee7e0fc20a237752e62e5 Mon Sep 17 00:00:00 2001
From: Philipp Haselwarter <philipp@haselwarter.org>
Date: Wed, 10 Oct 2012 11:00:58 +0200
Subject: [PATCH] gnus-sync.el (gnus-sync-file-encrypt-to): Set
 epa-file-encrypt-to from variable to avoid querying

---
 lisp/gnus-sync.el | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lisp/gnus-sync.el b/lisp/gnus-sync.el
index 510e858..4bcec84 100644
--- a/lisp/gnus-sync.el
+++ b/lisp/gnus-sync.el
@@ -142,6 +142,11 @@ and `gnus-topic-alist'.  Also see `gnus-variable-list'."
 (defvar gnus-sync-newsrc-loader nil
   "Carrier for newsrc data")
 
+(defcustom gnus-sync-file-encrypt-to nil
+  "If non-nil, `epa-file-encrypt-to' is set from this for encrypting the Sync
+  file."
+  :group 'gnus-sync)
+
 (defcustom gnus-sync-lesync-name (system-name)
   "The LeSync name for this machine."
   :group 'gnus-sync
@@ -757,6 +762,9 @@ With a prefix, FORCE is set and all groups will be saved."
         (progn
           (let ((coding-system-for-write gnus-ding-file-coding-system)
                 (standard-output (current-buffer)))
+            (when gnus-sync-file-encrypt-to
+              (set (make-local-variable 'epa-file-encrypt-to)
+                   gnus-sync-file-encrypt-to))
             (princ (format ";; -*- mode:emacs-lisp; coding: %s; -*-\n"
                            gnus-ding-file-coding-system))
             (princ ";; Gnus sync data v. 0.0.1\n")
-- 
1.7.12.2


[-- Attachment #4: Type: text/plain, Size: 26 bytes --]



-- 
Philipp Haselwarter

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Fwd: Re: [gnus-sync.el] epa-file-encrypt-to
  2012-10-10 23:05 Fwd: Re: [gnus-sync.el] epa-file-encrypt-to Philipp Haselwarter
@ 2012-10-21 13:44 ` Philipp Haselwarter
  2012-12-22 20:03   ` Ted Zlatanov
  0 siblings, 1 reply; 3+ messages in thread
From: Philipp Haselwarter @ 2012-10-21 13:44 UTC (permalink / raw)
  To: ding

can someone review this? pretty please?

-- 
Philipp Haselwarter




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Fwd: Re: [gnus-sync.el] epa-file-encrypt-to
  2012-10-21 13:44 ` Philipp Haselwarter
@ 2012-12-22 20:03   ` Ted Zlatanov
  0 siblings, 0 replies; 3+ messages in thread
From: Ted Zlatanov @ 2012-12-22 20:03 UTC (permalink / raw)
  To: ding

On Sun, 21 Oct 2012 15:44:42 +0200 Philipp Haselwarter <philipp@haselwarter.org> wrote: 

PH> can someone review this? pretty please?

Applied.  I am surprised no one committed it for so long.

Ted




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-12-22 20:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-10 23:05 Fwd: Re: [gnus-sync.el] epa-file-encrypt-to Philipp Haselwarter
2012-10-21 13:44 ` Philipp Haselwarter
2012-12-22 20:03   ` Ted Zlatanov

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).