Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Cc: ding@gnus.org
Subject: Re: Yet another attempt at more signing
Date: Thu, 28 Mar 2002 19:09:20 +0100	[thread overview]
Message-ID: <iluzo0swomn.fsf@extundo.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0203281123280.13695-100000@yxa.extundo.com> (Simon Josefsson's message of "Thu, 28 Mar 2002 11:26:57 +0100 (CET)")

Simon Josefsson <jas@extundo.com> writes:

> On Wed, 27 Mar 2002, Paul Jarc wrote:
>
>> Simon Josefsson <jas@extundo.com> 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)))))




  reply	other threads:[~2002-03-28 18:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-27 13:47 Jack Twilley
2002-03-27 17:49 ` Simon Josefsson
2002-03-28  0:09   ` Jack Twilley
2002-03-28  0:12   ` Paul Jarc
2002-03-28 10:26     ` Simon Josefsson
2002-03-28 18:09       ` Simon Josefsson [this message]
2002-03-28 19:25         ` Jack Twilley
2002-03-28 19:40           ` Jack Twilley
2002-03-28 19:46           ` Paul Jarc
2002-03-28 20:56             ` Jack Twilley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=iluzo0swomn.fsf@extundo.com \
    --to=jas@extundo.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).