Doing in-line signing with Mutt

Thomas Stivers stivers_t at tomass.dyndns.org
Wed Jan 25 12:44:02 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

On Wed, Jan 25, 2006 at 09:20:46 AM -0700, Raul A. Gallegos wrote:
> Can you show me an example of a folder hook or send hook to do this. 
> For example if I want to always pgp sign messages to this list but not 
> to x-list.

Oops I got distracted and forgot to finish the message before sending
it. Here is an example.

# first we set a default send-hook to reset things after other
# send-hooks change them
send-hook . 'set pgp_create_traditional=no crypt_autosign=yes'

# now for some poor outlook express users.
send-hook someone at somewhere\\.com anyone at anywhere\\.com \
'set pgp_create_traditional=yes'

# Don't sign subscription and unsubscription requests for lists.
send-hook .+-(request|subscribe|unsubscribe)@.* 'set crypt_autosign=no'

Mut is a little strange when it handles regular expressions, so looking
at the mutt manual when trying to do fancy stuff with regexps would
probably be a good thing.

I hope this can at least get you started and once you figure it out you
can do all sorts of craziness.

HTH

- -- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

Thomas Stivers	e-mail: stivers_t at tomass.dyndns.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFD17ji5JK61UXLur0RA9bqAJ4nB1z4nIY017UllxXyV7BqIRwF2QCfZnGC
E85u9kj6hi3BYLAvjqSzdDU=
=0WiC
-----END PGP SIGNATURE-----




More information about the Speakup mailing list