From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/55126 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:45:38 -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 1070804777 12672 80.91.224.253 (7 Dec 2003 13:46:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 7 Dec 2003 13:46:17 +0000 (UTC) Original-X-From: ding-owner+M3666@lists.math.uh.edu Sun Dec 07 14:46:14 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 1ASzEk-0004pm-00 for ; Sun, 07 Dec 2003 14:46:14 +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 1ASzEa-0000r8-00; Sun, 07 Dec 2003 07:46: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 1ASzEV-0000r3-00 for ding@lists.math.uh.edu; Sun, 07 Dec 2003 07:45:59 -0600 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id EB9793A0040 for ; Sun, 7 Dec 2003 07:45:58 -0600 (CST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1ASzEU-00008b-00 for ; Sun, 07 Dec 2003 14:45:58 +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 1ASzET-00008T-00 for ; Sun, 07 Dec 2003 14:45:57 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1ASzET-0003Hl-00 for ; Sun, 07 Dec 2003 14:45:57 +0100 Original-Lines: 48 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:WDSUxZ533l/3819zWaaGx9j9Fbo= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:55126 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:55126 [ NOTE: this is a repost which has been slightly modified from the original post, in an attempt to get past the "partial message checksum" message I got from the moderator-bot. ] Reiner Steib <4.uce.03.r.s@nurfuerspam.de> writes: > [ ... ] > > ,----[ 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). I was wondering why this option didn't work for me, and I found the code below in yesterday's CVS. 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. >From pgg-gpg.el ... (defun pgg-gpg-encrypt-region (start end recipients &optional sign) "Encrypt the current region between START and END. ;;; ... etc. ... (if recipients (apply #'nconc (mapcar (lambda (rcpt) (list "--remote-user" rcpt)) (append recipients (if pgg-encrypt-for-me (list pgg-gpg-user-id))))))))) ;;; ... etc. ... -- Lloyd Zusman ljz@asfast.com