From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63590 Path: news.gmane.org!not-for-mail From: gdt@work.lexort.com Newsgroups: gmane.emacs.gnus.general Subject: hook to insert sign command and forwarded messages Date: Fri, 25 Aug 2006 08:36:18 -0400 Message-ID: References: <87wtajwzjk.fsf@gate450.dyndns.org> <87wta86vzr.fsf@gate450.dyndns.org> <873bbnnciw.fsf@gate450.dyndns.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: sea.gmane.org 1156512209 29061 80.91.229.2 (25 Aug 2006 13:23:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 25 Aug 2006 13:23:29 +0000 (UTC) Original-X-From: ding-owner+m12117@lists.math.uh.edu Fri Aug 25 15:23:26 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GGbeM-0000MJ-Jd for ding-account@gmane.org; Fri, 25 Aug 2006 15:23:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1GGbdz-0006pw-00; Fri, 25 Aug 2006 08:22:44 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1GGbQ3-0006pr-00 for ding@lists.math.uh.edu; Fri, 25 Aug 2006 08:08:19 -0500 Original-Received: from quimby.gnus.org ([80.91.227.211]) by mx1.math.uh.edu with esmtp (Exim 4.52) id 1GGbQ3-0003SO-5q for ding@lists.math.uh.edu; Fri, 25 Aug 2006 08:08:19 -0500 Original-Received: from linuxpal.mit.edu ([18.62.1.14]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1GGbPx-0008Eg-00 for ; Fri, 25 Aug 2006 15:08:13 +0200 Original-Received: by linuxpal.mit.edu (Postfix, from userid 9545) id 501721606F; Fri, 25 Aug 2006 08:36:24 -0400 (EDT) Original-To: ding@gnus.org In-Reply-To: <873bbnnciw.fsf@gate450.dyndns.org> (Andreas Seltenreich's message of "Wed, 23 Aug 2006 09:20:55 +0200") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (berkeley-unix) X-Hashcash: 1:20:060825:ding@gnus.org::4E/U5mJO4zcbiyxG:00003Odj X-Spam-Score: -1.5 (-) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:63590 Archived-At: --=-=-= Content-Transfer-Encoding: quoted-printable I have the following hook: (add-hook 'message-setup-hook (lambda () (message-goto-body) (mml-secure-message-sign-pgpmime))) This works fine for most things. But when I forward a message (C-c C-f), the <#secure..> line is after the #mml markup around the message. I just added message-goto-body to try to fix this, thinking my hook would run after the message was inserted. So, I'm not sure what's wrong. Candidates are: mml-secure-message-sign-pgpmime should insert at beginning (seems like it does, and message-goto-body ensures that) insertion of forwarded message should be after any secure tags hook should be run after the insertion ? --=20 Greg Troxel --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (NetBSD) iD8DBQFE7u7IH9p66AmO1g4RApZuAJ9FWzsHECHOVJ/6pQL8/+XT1YtIvACfRFnX hah/xr3IRStl11E2ZLFN01M= =IKTQ -----END PGP SIGNATURE----- --=-=-=--