At 2004-03-16T18:56:55Z, Paul Johnson <baloo@ursine.ca> writes:
> OK, I can sign and view inline PGP-signed messages, but I see PGP/MIME as
> an attachment...blarg. And I don't seem to see it automatically in
> newsgroups.
That's... unexpected. Maybe quit and reload Emacs?
Regarding the rest of my configuration, this is an excerpt from my .gnus.el
(same as .gnus, but it gets compiled for faster startups):
############################################################
(setq
;; Variables that can be customized on a per-group basis
gnus-newsgroup-variables '(setup-hook-function-name)
)
;; Emacs should always decrypt and verify emails
;; automatically
(setq mm-verify-option 'always)
(setq mm-decrypt-option 'always)
(setq gnus-buttonized-mime-types '("multipart/encrypted" "multipart/signed"))
(add-hook 'gnus-message-setup-hook
(lambda ()
(interactive)
(and setup-hook-function-name
(funcall setup-hook-function-name))))
############################################################
Then, in the group parameters for the root topic ("Gnus" - I think it's the
same for everyone), I have:
############################################################
((posting-style
(signature-file "~/.signature"))
(setup-hook-function-name
'(lambda nil
(if
(message-news-p)
'mml-secure-message-sign-pgp 'mml-secure-message-sign-pgpmime))))
############################################################
Now, if I post to a mailing list, Gnus uses the -sign-pgpmime function to
sign my mail. If I post to a newsgroup, Gnus uses -sign-pgp. In groups
where I don't want to sign my email at all I add this to my group
parameters:
############################################################
(setup-hook-function-name nil)
############################################################
Of course, I can always manually choose whether or how to sign a particular
message before I send it, but it's nice to not have to remember. :)
--
Kirk Strauser
Attachment:
pgpJ8IJCz4fjm.pgp
Description: PGP signature