From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/58162 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: pgp 6.5.8 and gnus Date: Tue, 27 Jul 2004 01:07:31 +0200 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 1090883342 10508 80.91.224.253 (26 Jul 2004 23:09:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Jul 2004 23:09:02 +0000 (UTC) Original-X-From: ding-owner+M6703@lists.math.uh.edu Tue Jul 27 01:08:54 2004 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 1BpEaT-0001U0-00 for ; Tue, 27 Jul 2004 01:08:54 +0200 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 1BpEZP-0000DV-00; Mon, 26 Jul 2004 18:07:47 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BpEZK-0000DQ-00 for ding@lists.math.uh.edu; Mon, 26 Jul 2004 18:07:42 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BpEZH-000899-QS for ding@lists.math.uh.edu; Mon, 26 Jul 2004 18:07:39 -0500 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id CBCF63A0034 for ; Mon, 26 Jul 2004 18:07:38 -0500 (CDT) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BpEZE-0000jK-00 for ; Tue, 27 Jul 2004 01:07:36 +0200 Original-Received: from c494102a.s-bi.bostream.se ([217.215.27.65]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Jul 2004 01:07:36 +0200 Original-Received: from jas by c494102a.s-bi.bostream.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Jul 2004 01:07:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 36 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: c494102a.s-bi.bostream.se User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:My2CUWkKChJhkHT3RwbFTjyPrJM= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:58162 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:58162 David S Goldberg writes: > I haven't used pgp in years now that my company standardized on > s/mime. I have to deal with a customer who uses pgp. So I built pgp > 6.5.8 on a Sun box and would like to use gnus with it. I assume I'm > supposed to use mml-secure-message-encrypt-pgp to send him an > encrypted message. I looked at the pgg documentation and it seems > that setting pgg-default-scheme to pgp5 is necessary. But when I do > that, I get an error that pgg-pgp5-encrypt-region is being called with > a wrong number of arguments. It looks like something is sticking a t > at the end of it. Am I doing something wrong? Is there a bug? Is > there a better way to do this? You could try GnuPG. Or the patch below. Do you know whether PGP 6.5.8 support encryption with signatures? If so, how do you request it on the command line? As comparison, GnuPG has --encrypt --sign. --- pgg-pgp5.el 20 May 2004 23:57:59 +0200 7.2 +++ pgg-pgp5.el 27 Jul 2004 01:05:08 +0200 @@ -1,6 +1,6 @@ ;;; pgg-pgp5.el --- PGP 5.* support for PGG. -;; Copyright (C) 1999, 2000, 2003 Free Software Foundation, Inc. +;; Copyright (C) 1999, 2000, 2003, 2004 Free Software Foundation, Inc. ;; Author: Daiki Ueno ;; Created: 1999/11/02 @@ -142,7 +142,7 @@ (buffer-substring (match-end 0)(progn (end-of-line)(point))))) 2))))) -(defun pgg-pgp5-encrypt-region (start end recipients) +(defun pgg-pgp5-encrypt-region (start end recipients &optional sign) "Encrypt the current region between START and END." (let* ((pgg-pgp5-user-id (or pgg-pgp5-user-id pgg-default-user-id)) (args