From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46395 Path: main.gmane.org!not-for-mail From: Josh Huber Newsgroups: gmane.emacs.gnus.general Subject: Re: How does one pgp/mime encrypt to different recipients? Date: Wed, 04 Sep 2002 10:46:36 -0400 Sender: owner-ding@hpc.uh.edu Message-ID: <87ofbdizhv.fsf@mail.paradoxical.net> References: <874rd844xt.fsf@athene.jamux.com> <87it1o10gr.fsf@athene.jamux.com> <87heh7yvjt.fsf@mail.paradoxical.net> Reply-To: Josh Huber NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031150773 24461 127.0.0.1 (4 Sep 2002 14:46:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 4 Sep 2002 14:46:13 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17mbQ3-0006M2-00 for ; Wed, 04 Sep 2002 16:46:11 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 17mbQr-0008Be-00; Wed, 04 Sep 2002 09:47:01 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 04 Sep 2002 09:47:37 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id JAA28286 for ; Wed, 4 Sep 2002 09:47:24 -0500 (CDT) Original-Received: (qmail 1759 invoked by alias); 4 Sep 2002 14:46:39 -0000 Original-Received: (qmail 1754 invoked from network); 4 Sep 2002 14:46:38 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by gnus.org with SMTP; 4 Sep 2002 14:46:38 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 17mby5-0001EW-00 for ; Wed, 04 Sep 2002 17:21:21 +0200 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 60 Original-NNTP-Posting-Host: paradoxical.net Original-X-Trace: quimby.gnus.org 1031152881 27069 66.92.73.76 (4 Sep 2002 15:21:21 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 4 Sep 2002 15:21:21 GMT Mail-Copies-To: nobody User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Honest Recruiter, i686-pc-linux) Cancel-Lock: sha1:TVvLg8O8n5Xh15dly2MpepOkR84= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:46395 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:46395 David S Goldberg writes: > Does/should this work for s/mime? If so what's the syntax for the > tag? I've been completely unable to encrypt to multiple recipients > using the secure tag. I always have to remember to use > mml-secure-encrypt-smime which only encrypts a single part, which > works for my simple text messages, but is clearly not the desired > approach. I think it should work for s/mime, but I don't use it. With s/mime do you have to specify the recipeints each time, or can it look up based on the recipient addresses in the headers? I see now...(looking at mml-smime.el) Right now I'm not calling the mml-smime-(sign|encrypt)-query function. I don't have smime keys set up to test this, so could you try out this patch? Index: mml-sec.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/mml-sec.el,v retrieving revision 1.15 diff -u -r1.15 mml-sec.el --- mml-sec.el 2002/05/08 16:12:53 1.15 +++ mml-sec.el 2002/09/04 15:20:26 @@ -161,7 +161,12 @@ ;; defuns that add the proper <#secure ...> tag to the top of the message body (defun mml-secure-message (method &optional modesym) (let ((mode (prin1-to-string modesym)) - insert-loc) + insert-loc + (recipients (funcall (nth 2 (assoc method + (if (or (eq modesym 'sign) + (eq modesym 'signencrypt)) + mml-sign-alist + mml-encrypt-alist)))))) (mml-unsecure-message) (save-excursion (goto-char (point-min)) @@ -170,7 +175,7 @@ (goto-char (setq insert-loc (match-end 0))) (unless (looking-at "<#secure") (mml-insert-tag - 'secure 'method method 'mode mode))) + 'secure 'method method 'mode mode recipients))) (t (error "The message is corrupted. No mail header separator")))) (when (eql insert-loc (point)) If that doesn't work, can you tell me what the mml-smim-sign-query function returns for you? Does it include the "recipients" symbol? Thanks, -- Josh Huber