From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44053 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: Yet another attempt at more signing Date: Thu, 28 Mar 2002 19:09:20 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1017339251 18459 127.0.0.1 (28 Mar 2002 18:14:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 28 Mar 2002 18:14:11 +0000 (UTC) Cc: ding@gnus.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16qePb-0004nc-00 for ; Thu, 28 Mar 2002 19:14:11 +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 16qeLA-0006LX-00; Thu, 28 Mar 2002 12:09:36 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 28 Mar 2002 12:09:42 -0600 (CST) 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 MAA10686 for ; Thu, 28 Mar 2002 12:09:21 -0600 (CST) Original-Received: (qmail 22627 invoked by alias); 28 Mar 2002 18:09:06 -0000 Original-Received: (qmail 22622 invoked from network); 28 Mar 2002 18:09:05 -0000 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net (HELO yxa.extundo.com) (217.13.230.178) by gnus.org with SMTP; 28 Mar 2002 18:09:05 -0000 Original-Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.2/8.12.2) with ESMTP id g2SI8xKY019654; Thu, 28 Mar 2002 19:09:01 +0100 Original-To: Jack Twilley In-Reply-To: (Simon Josefsson's message of "Thu, 28 Mar 2002 11:26:57 +0100 (CET)") Mail-Copies-To: nobody Original-Lines: 26 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:44053 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:44053 Simon Josefsson writes: > On Wed, 27 Mar 2002, Paul Jarc wrote: > >> Simon Josefsson wrote: >> > You need to run the hook before the --text follows this line-- stuff >> > is replaced with a empty line. >> >> Not that I've paid close attention to this thread, but I'd guess this >> would also work, assuming you don't care about the cosmetic >> difference: >> (setq mail-header-separator "") > > IIRC, the code goes to point-max and then searches backwards for the > delimiter. I have no idea why, but it would break your approach if there > are empty lines in the body. I guess we should goto point-min and search > forward instead, then you can bind mail-header-separator to "" and things > would just work. I'll change it tonight, unless someone beats me to it. Done. Perhaps this will work now: (add-hook 'message-send-news-hook (lambda () (if (not (string= "one.particular.newsgroup" gnus-newsgroup-name)) (let ((mail-header-separator "")) (mml-secure-message-sign-pgpmime)))))