From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/55127 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 10:16:45 -0500 Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1070810513 21532 80.91.224.253 (7 Dec 2003 15:21:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 7 Dec 2003 15:21:53 +0000 (UTC) Original-X-From: ding-owner+M3667@lists.math.uh.edu Sun Dec 07 16:21:50 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 1AT0jG-0007ry-00 for ; Sun, 07 Dec 2003 16:21:50 +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 1AT0ii-00018p-00; Sun, 07 Dec 2003 09:21:16 -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 1AT0ia-00018j-00 for ding@lists.math.uh.edu; Sun, 07 Dec 2003 09:21:08 -0600 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id 2E0E03A0040 for ; Sun, 7 Dec 2003 09:21:07 -0600 (CST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AT0iY-0000q5-00 for ; Sun, 07 Dec 2003 16:21:06 +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 1AT0iW-0000px-00 for ; Sun, 07 Dec 2003 16:21:04 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AT0iW-0005a6-00 for ; Sun, 07 Dec 2003 16:21:04 +0100 Original-Lines: 71 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:YgJeaxnKocnkATlL8yiJgVoKWBI= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:55127 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:55127 --=-=-= Lloyd Zusman writes: > [ ... ] > > 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. Here's a patch for this. What do you folks think? If it's suitable, feel free to apply it to CVS. Thanks. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=pgg-gpg.patch Content-Description: recipient/remote-user option choice *** pgg-gpg.el.orig Sun Dec 7 09:09:01 2003 --- pgg-gpg.el Sun Dec 7 10:11:05 2003 *************** *** 43,48 **** --- 43,54 ---- :group 'pgg-gpg :type '(repeat (string :tag "Argument"))) + (defcustom pgg-gpg-recipient-arg "--recipient" + "Recipient option for gpg." + :group 'pgg-gpg + :type '(choice (const :tag "New `--recipient' option" "--recipient") + (const :tag "Old `--remote-user' option" "--remote-user"))) + (defvar pgg-gpg-user-id nil "GnuPG ID of your default identity.") *************** *** 154,160 **** (if recipients (apply #'nconc (mapcar (lambda (rcpt) ! (list "--remote-user" rcpt)) (append recipients (if pgg-encrypt-for-me (list pgg-gpg-user-id))))))))) --- 160,166 ---- (if recipients (apply #'nconc (mapcar (lambda (rcpt) ! (list pgg-gpg-recipient-arg rcpt)) (append recipients (if pgg-encrypt-for-me (list pgg-gpg-user-id))))))))) --=-=-= -- Lloyd Zusman ljz@asfast.com --=-=-=--