[Techtalk] mutt hooks (was PGP signing mail)

Teri Solow tsolow at terisolow.com
Mon Jun 7 18:55:28 EST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Jun 07, 2004 at 02:46:32PM -0700, Akkana Peck said:
> Is there a better way of handling this?  Or, better yet, a way to say
> "As a send-hook for this list, set this variable, then unset it
> again after the message is sent"?  I suppose you could put all the
> variables to be cleared into a ~/.mutt_defaults script, and source
> that as the first operation in any hook.

Here's what I do, which seems to work well enough (this is an example
from my actual .muttrc, so some editing will almost definitely be
necessary)

folder-hook . 'set pgp_create_traditional = no'
folder-hook List\:.* 'set pgp_create_traditional = yes'

Then I can simply add more hooks for more folders I want changed, and
can rest-assured that it will be changed back to my default as soon as
I switch to another folder.

- -- 
(n_	Teri Solow
//\	http://terisolow.com
V_/_

There are no great men, only great challenges that ordinary men are forced
by circumstances to meet.
		-- Admiral William Halsey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAxPJgCRjPPiFbVe8RApPYAJ9MNZ1uWNuibGXciiok7GN+ez2nIACfX+uI
WKnSLjyewK5Gk/Lo69owGuU=
=3u7R
-----END PGP SIGNATURE-----


More information about the Techtalk mailing list