From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/47930 Path: main.gmane.org!not-for-mail From: Arcady Genkin Newsgroups: gmane.emacs.gnus.general Subject: Re: PGP/MIME signing messages by default Date: Wed, 27 Nov 2002 11:57:50 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: References: <86n0nvg13y.fsf@tea.thpoon.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1038416333 27268 80.91.224.249 (27 Nov 2002 16:58:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 27 Nov 2002 16:58:53 +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 18H5WV-00075g-00 for ; Wed, 27 Nov 2002 17:58:52 +0100 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 18H5Wd-0005nt-00; Wed, 27 Nov 2002 10:58:59 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 27 Nov 2002 10:59:46 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@[209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id KAA25302 for ; Wed, 27 Nov 2002 10:59:32 -0600 (CST) Original-Received: (qmail 18343 invoked by alias); 27 Nov 2002 16:58:20 -0000 Original-Received: (qmail 18338 invoked from network); 27 Nov 2002 16:58:20 -0000 Original-Received: from bashful.cdf.toronto.edu (128.100.31.109) by gnus.org with SMTP; 27 Nov 2002 16:58:20 -0000 Original-Received: by bashful.cdf.toronto.edu (Postfix, from userid 191) id 862227E08; Wed, 27 Nov 2002 11:57:50 -0500 (EST) Original-To: ding@gnus.org X-Face: 0=A/O5-+sE[Tf%X>rYr?Y5LD4,:^'jaJ!4jC&UR*ZrrK2>^`g22Qeb]!:d;}2YJ|Hq"LHdF OX`jWX|AT-WVFQ(TPhFVak)0nt$aEdlOq=1~D,:\z5QlVOrZ2(H,mKg=Xr|'VlHA="r In-Reply-To: (Nicolas Kowalski's message of "Wed, 27 Nov 2002 09:11:59 +0100") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Military Intelligence, i686-pc-linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:47930 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:47930 Nicolas Kowalski writes: > ;; plug this into message-setup-hook > (add-hook 'message-setup-hook 'my-mml-secure-message-sign) I have simplified your suggestion to the following: (add-hook 'message-setup-hook 'mml-secure-message-sign-pgpmime) This only works for new messages, however. It looks like Gnus expects to find the markup "<#secure method=pgpmime mode=sign>" as the first line of the message, or else it is ignored... I guess I can write another function that would save cursor position, go to the top of the message, invoke `mml-secure-message-sign-pgpmime' and return to the initial position, but I am thinking that there must be a cleaner, cannonical way of making this work. Thanks for your reply, -- Arcady Genkin guilt is the cause of more disauders than history's most obscene marorders (E.E. Cummings)