From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/55131 Path: main.gmane.org!not-for-mail From: Lloyd Zusman Newsgroups: gmane.emacs.gnus.general Subject: Re: Encrypting outgoing message but not Gcc? Date: Sun, 07 Dec 2003 08:35:51 -0500 Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1070817082 32355 80.91.224.253 (7 Dec 2003 17:11:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 7 Dec 2003 17:11:22 +0000 (UTC) Original-X-From: ding-owner+M3671@lists.math.uh.edu Sun Dec 07 18:11:20 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AT2RD-0003Uh-00 for ; Sun, 07 Dec 2003 18:11:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1AT2Qy-0001bm-00; Sun, 07 Dec 2003 11:11:04 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1ASz4i-0000qZ-00 for ding@lists.math.uh.edu; Sun, 07 Dec 2003 07:35:52 -0600 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id 458EA3A0040 for ; Sun, 7 Dec 2003 07:35:52 -0600 (CST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1ASz4h-0008WP-00 for ; Sun, 07 Dec 2003 14:35:51 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ASz4g-0008WH-00 for ; Sun, 07 Dec 2003 14:35:50 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1ASz4g-00032Y-00 for ; Sun, 07 Dec 2003 14:35:50 +0100 Original-Lines: 63 Original-X-Complaints-To: usenet@sea.gmane.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:0WE1+5N8sppEpmHk1+SV2i680sY= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:55131 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:55131 Reiner Steib <4.uce.03.r.s@nurfuerspam.de> writes: > On Sat, Dec 06 2003, Lloyd Zusman wrote: > >> I Gcc messages to an archive group, and unless I have the >> recipient's private key, I can't view the archived message if it's >> been encrypted. > > ,----[ C-h v pgg-encrypt-for-me RET ] > | pgg-encrypt-for-me's value is t > | > | Documentation: > | If t, encrypt all outgoing messages with user's public key. > `---- > > The default value has bee changed to `t' recently (2003-11-10). > > Bye, Reiner. I was wondering why this option didn't work for me, and I found the code below in yesterday's CVS of pgg-gpg.el. Notice that it makes my user ID known to gpg by means of the `--remote-user' option. However, this option is no longer used in recent versions of gpg ... it's been replaced with `--recipient'. I think that we need a configuration variable that allows us to specify one or the other of these option flags, so that the code can be made to work with both older and newer versions of gpg. (defun pgg-gpg-encrypt-region (start end recipients &optional sign) "Encrypt the current region between START and END. If optional argument SIGN is non-nil, do a combined sign and encrypt." (let* ((pgg-gpg-user-id (or pgg-gpg-user-id pgg-default-user-id)) (passphrase (when sign (pgg-read-passphrase (format "GnuPG passphrase for %s: " pgg-gpg-user-id) pgg-gpg-user-id))) (args (append (list "--batch" "--armor" "--always-trust" "--encrypt") (if sign (list "--sign" "--local-user" pgg-gpg-user-id)) (if recipients (apply #'nconc (mapcar (lambda (rcpt) (list "--remote-user" rcpt)) (append recipients (if pgg-encrypt-for-me (list pgg-gpg-user-id))))))))) (pgg-as-lbt start end 'CRLF (pgg-gpg-process-region start end passphrase pgg-gpg-program args)) (when sign (with-current-buffer pgg-errors-buffer ;; Possibly cache passphrase under, e.g. "jas", for future sign. (pgg-gpg-possibly-cache-passphrase passphrase pgg-gpg-user-id) ;; Possibly cache passphrase under, e.g. B565716F, for future decrypt. (pgg-gpg-possibly-cache-passphrase passphrase))) (pgg-process-when-success))) -- Lloyd Zusman ljz@asfast.com