[EMAIL PROTECTED] (Zak B. Elep) writes: > I see. So I guess there's no other way than to figure out a way to > selectively sign mails based on where I'm sending to, huh? I think gnus > can handle that...
And Gnus does it! Inspired from GnusPGG[1] on EmacsWiki[2], here's the
elisp snippet to make selective signing work:
<verbatim src="~/.gnus">
;; regexp of groups from which new messages are mime signed by default
(setq my-sign-mime-group-regexp
(concat "^inbox\\|^plug\\|^debian.*\\|"
"^admu-ps-2005\\|^emacs-wiki-discuss"))
;; hook to setup message
(defun my-mml-secure-message-sign-pgpmime ()
(when (string-match
my-sign-mime-group-regexp
gnus-newsgroup-name)
(mml-secure-message-sign-pgpmime)))
;; Set up signed mail
(add-hook 'message-send-hook 'my-mml-secure-message-sign-pgpmime)
</verbatim>
FYI, FWIW. Thanks dido for the motivation! =)
[1] http://www.emacswiki.org/cgi-bin/wiki/GnusPGG
[2] http://www.emacswiki.org
--
ZAK B. ELEP <[EMAIL PROTECTED]> -- <http://zakame.spunge.org>
1024D/FA53851D 1486 7957 454D E529 E4F1 F75E 5787 B1FD FA53 851D
-- Running Debian GNU+Linux testing/unstable. GnuPG signed mail preferred.
pgpOTBf00yFZI.pgp
Description: PGP signature
-- Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
