On Fri, Feb 04, 2000 at 03:01:05PM -0600, freix wrote:
> send-hook .* 'unset pgp_autoencrypt'
> send-hook '~t ^user@host\.domain\.com$' 'set pgp_autoencrypt'
> send-hook '~t ^user@host\.domain\.com$' 'set pgp_autosign'
> 
> Is the only way I seem to be able to achieve both.  Any variation of
> syntax, pipes, diff quotes, no quotes, etc, doesn't seem to take.
> 
> send-hook '~t ^user@host\.domain\.com$' 'set (pgp_autosign|pgp_autoencrypt)'

send-hook '~t ^user@host\.domain\.com$' set pgp_autosign pgp_autoencrypt

will do the trick.  remember, you can set multiple variables in one shot..
Here is a real world example from my own .muttrc:

send-hook ~A "set &signature realname='Michael Elkins' 
hostname=toesinperil.com;unmy_hdr from"

It resests the value of $signature, sets $realname and $hostname, then in a
separate command, it removes the custom from: field (unmy_hdr).

me
-- 
pgp key available from http://www.cs.hmc.edu/~me/elkins-pgp-key.asc

PGP signature

Reply via email to