From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/28816 Path: main.gmane.org!not-for-mail From: Florian Weimer Newsgroups: gmane.emacs.gnus.general Subject: Re: MML, message-send-hook and automatically GnuPG-signing messages. Date: 18 Jan 2000 12:39:12 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: <87n1q38v8f.fsf@deneb.cygnus.argh.org> References: <87d7r25t6t.fsf@deneb.cygnus.argh.org> <87aem49cht.fsf@deneb.cygnus.argh.org> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035165594 31764 80.91.224.250 (21 Oct 2002 01:59:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:59:54 +0000 (UTC) Return-Path: Original-Received: from bart.math.uh.edu (bart.math.uh.edu [129.7.128.48]) by mailhost.sclp.com (Postfix) with ESMTP id E524CD051E for ; Tue, 18 Jan 2000 06:57:26 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by bart.math.uh.edu (8.9.1/8.9.1) with ESMTP id FAB11940; Tue, 18 Jan 2000 05:56:02 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 18 Jan 2000 05:55:41 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id FAA12990 for ; Tue, 18 Jan 2000 05:55:31 -0600 (CST) Original-Received: from mail.cid.net (cephyr.cid.net [212.172.21.2]) by mailhost.sclp.com (Postfix) with ESMTP id B1C56D051E for ; Tue, 18 Jan 2000 06:55:18 -0500 (EST) Original-Received: from uucp by mail.cid.net (Exim 3.11) with local-bsmtp id 12AXEN-0003xt-00; Tue, 18 Jan 2000 12:55:27 +0100 Original-Received: from deneb.cygnus.argh.org ([192.168.1.2] ident=exim) by cygnus.argh.org with esmtp (Exim 3.12 #1) id 12AWyD-0001Gi-00 for ding@gnus.org; Tue, 18 Jan 2000 12:38:45 +0100 Original-Received: from fw by deneb.cygnus.argh.org with local (Exim 3.12 #1) id 12AWyf-0000Tj-00 for ding@gnus.org; Tue, 18 Jan 2000 12:39:13 +0100 Original-To: ding@gnus.org In-Reply-To: Jonas Steverud's message of "18 Jan 2000 11:35:19 +0100" Original-Lines: 22 User-Agent: Gnus/5.0804 (Gnus v5.8.4) Emacs/20.4 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:28816 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:28816 Jonas Steverud writes: > > <#multipart type=signed> > [...] > > How can I ensure that this will be expanded _last_? Signing and > encrypting demands that it is done last. Look at the code. It compiles the contained MML directives and, as a result, gets the raw representation of the contained parts. After that, you can calculate signatures, encrypt it, in short: do whatever you want. I don't think an additional hook is required, in fact, I would be surprised. ;) You only need additional data structures for decrypting and verifying signatures. But the whole discussion is unnecessary at the moment. There is no safe way to invoke PGP or GnuPG from Emacs on most systems (at least on all I tested except Solaris), so it's probably not very wise to use Mailcrypt and similar packages on a multi-user machine.