Gnus development mailing list
 help / color / mirror / Atom feed
From: prj@po.cwru.edu (Paul Jarc)
Subject: Re: Yet another attempt at more signing
Date: Thu, 28 Mar 2002 14:46:15 -0500	[thread overview]
Message-ID: <m34rj0pjaa.fsf@multivac.cwru.edu> (raw)
In-Reply-To: <863cykbiki.fsf@duchess.twilley.org> (Jack Twilley's message of "Thu, 28 Mar 2002 11:25:49 -0800")

Simon Josefsson <jas@extundo.com> wrote:
> 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)))))

Jack Twilley <jmt+usenet@twilley.org> wrote:
> <#secure method=pgpmime mode=sign>
> If this message is signed, that works.  Yay.

What about this:
(setq mail-header-separator "")
(add-hook 'message-send-news-hook 'jmt:message-send-news-hook)
(defun jmt:message-send-news-hook ()
  (if (not (string= "one.particular.newsgroup" gnus-newsgroup-name))
      (mml-secure-message-sign-pgpmime)))

(I always give hook functions names so that I can redefine the
function during testing, rather than having to remove the old version
from the hook, which is easy to forget.)


paul



  parent reply	other threads:[~2002-03-28 19:46 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
2002-03-28 19:25         ` Jack Twilley
2002-03-28 19:40           ` Jack Twilley
2002-03-28 19:46           ` Paul Jarc [this message]
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=m34rj0pjaa.fsf@multivac.cwru.edu \
    --to=prj@po.cwru.edu \
    /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).