From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68555 Path: news.gmane.org!not-for-mail From: Michael Sperber Newsgroups: gmane.emacs.gnus.general Subject: Encrypt gcc copy with own key Date: Mon, 25 May 2009 15:10:24 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1243278044 12805 80.91.229.12 (25 May 2009 19:00:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 May 2009 19:00:44 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M16986@lists.math.uh.edu Mon May 25 21:00:37 2009 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1M8fPY-0005Sk-6c for ding-account@gmane.org; Mon, 25 May 2009 21:00:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1M8fOl-0002eD-Ir; Mon, 25 May 2009 13:59:47 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1M8Zx0-000143-Sc for ding@lists.math.uh.edu; Mon, 25 May 2009 08:10:46 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1M8Zwu-0003tB-QC for ding@lists.math.uh.edu; Mon, 25 May 2009 08:10:46 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1M8ZxO-0003d5-00 for ; Mon, 25 May 2009 15:11:10 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M8Zwt-0005Tf-PZ for ding@gnus.org; Mon, 25 May 2009 13:10:39 +0000 Original-Received: from p5b205e87.dip.t-dialin.net ([91.32.94.135]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 May 2009 13:10:39 +0000 Original-Received: from sperber by p5b205e87.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 May 2009 13:10:39 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 55 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p5b205e87.dip.t-dialin.net User-Agent: Gnus/5.110011 (No Gnus v0.11) XEmacs/21.5-b28 (darwin) Cancel-Lock: sha1:oqrUYA1leFnVbMz6+E/x4kHqdIY= X-Spam-Score: -3.6 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68555 Archived-At: I often archive a copy of an encrypted e-mail. Once upon a time, I wondered how to do this without encrypting the archive copy with the recipient's key (which I don't have). Reiner Steib gave some advice here: http://article.gmane.org/gmane.emacs.gnus.general/66847 Somehow, I seem to remember that his idea worked. Looking back at my archived copies, however, they are all un-decryptable. Tracing through the code, it's clear the gcc copy is explicitly encrypted using the recipient's key. So I think there's ultimately a bug somewhere. I did this to fix it: Index: lisp/gnus-msg.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/gnus-msg.el,v retrieving revision 7.72 diff -u -r7.72 gnus-msg.el --- lisp/gnus-msg.el 22 Jan 2009 07:02:16 -0000 7.72 +++ lisp/gnus-msg.el 21 May 2009 12:11:07 -0000 @@ -1636,7 +1636,9 @@ (save-excursion (nnheader-set-temp-buffer " *acc*") (insert-buffer-substring cur) - (message-encode-message-body) + (let ((message-options message-options)) + (message-options-set 'message-recipients user-mail-address) + (message-encode-message-body)) (save-restriction (message-narrow-to-headers) (let* ((mail-parse-charset message-default-charset) Index: lisp/mml2015.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/mml2015.el,v retrieving revision 7.57 diff -u -r7.57 mml2015.el --- lisp/mml2015.el 22 Jan 2009 07:02:16 -0000 7.57 +++ lisp/mml2015.el 21 May 2009 12:11:07 -0000 @@ -1291,7 +1291,8 @@ recipients))) (unless recipients (error "No recipient specified"))) - (message-options-set 'mml2015-epg-recipients recipients)) + ;(message-options-set 'mml2015-epg-recipients recipients) + ) (when sign (setq signers (or (message-options-get 'mml2015-epg-signers) Is this the way to do it? Comments appreciated! -- Cheers =8-} Mike Friede, Völkerverständigung und überhaupt blabla