Gnus development mailing list
 help / color / mirror / Atom feed
* Yet another attempt at more signing
@ 2002-03-27 13:47 Jack Twilley
  2002-03-27 17:49 ` Simon Josefsson
  0 siblings, 1 reply; 10+ messages in thread
From: Jack Twilley @ 2002-03-27 13:47 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1234 bytes --]

I got annoyed with having <#secure ...> as the first line of my
messages so I went looking for another arrangement.

Here's what I came up with:

--begin elisp--
(load "bbdb-pgp" t)

(setq bbdb/pgp-default-action 'sign)

(remove-hook 'message-send-hook 'bbdb/pgp-hook-fun)

(add-hook 'message-send-mail-hook 'bbdb/pgp-hook-fun)
(add-hook 'message-send-news-hook '(lambda ()
				     (if (not (string= "one.particular.newsgroup" gnus-newsgroup-name))
					 'mml-secure-message-sign-pgpmime)))
--end elisp--

What that should do is sign all emails I send that aren't to people
who have BBDB entries with "pgp-mail" set to encrypt, and sign all
Usenet posts except those to one particular newsgroup.

Unfortunately, it doesn't work.  I get the error message 
"The message is corrupted. No mail header separator." when trying to
run the mml-secure-message-sign-pgpmime function in the
message-send-news-hook.

Any suggestions?  It would rock if I could somehow stick that
one.particular.newsgroup in a BBDB record and set its "pgp-mail" value
to nil, but I don't think that'd work. :-)

Jack.
-- 
Jack Twilley
jmt at twilley dot org
http colon slash slash www dot twilley dot org slash tilde jmt slash

[-- Attachment #2: Type: application/pgp-signature, Size: 229 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2002-03-28 20:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-27 13:47 Yet another attempt at more signing 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
2002-03-28 20:56             ` Jack Twilley

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).