<<< Date Index >>>     <<< Thread Index >>>

Re: Conditionally removing signature



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Tuesday, July  7 at 11:43 AM, quoth Ed Blackman:
> send-hook "~t joe@" set pgp_autoencrypt=yes # ...

I think you probably want $crypt_autoencrypt instead of pgp_*.

> This autoencrypts whenever I email Joe directly (what I want) and 
> when I email him and several others (not what I want).  I have to 
> remember to turn off encryption in that case.
>
> send-hook "^~t joe@" set pgp_autoencrypt=yes

Works for me (when I use crypt_autoencrypt).

Actually, I do something slightly different:

     send-hook .             'set crypt_autoencrypt=no'
     send-hook '!~G ^%C pgp' 'set crypt_autoencrypt=yes'

Then, in my aliases file, I tag people that I want to encrypt things 
to, like so:

     alias -group pgp john <joe@xxxxxxxxxxx> (John Doe)

Thus, if the only recipients of a message are those who I know can 
handle encryption, I use encryption.

~Kyle
- -- 
A fanatic is one who can't change his mind and won't change the 
subject.
                                     -- Winston Churchill, July 5, 1954
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iQIcBAEBCAAGBQJKU4lfAAoJECuveozR/AWeYY0P+wfaoTQolzJiOnnO7KfYXZs6
oJoh12rJthRVkr5pPKlYaNdc2Q7EqquzYDDQ0NYC2q1neWQMuCHQUc3TZEXckf0d
8sYXSOD9QD7oZdaqmswUwcoq52G7WOrixMBjACRkvnowZR+9gxyAHL2JIGuN/aKr
a11j70emkublzt6OPoR+CTchWODZKJ0RjXFj1EpSQ+gN6g5QJop+YgIqmsnF3y0t
LdcnfLt579krDM/oLQBnvQS/Hl+PcR7OLz1iaEWMexm8BaudNjfpU0+/Uw0CDWY7
pxXXCfpObOZCbmyn6axGIIMiEzvTU60laSPOkkaRDsM2Y7rNMvw8iMqlcxe19qhU
cS8SpyvmogoyMiRlXohmk91nTLkEJrdXXpL5gdPAQBwqPgXYtpozTg1wrLIBBGN3
sa9pbfcXDWT9stmncmS2qYaMmRDc09NM4qFjKFJafcTHza1gVlgsIydt2ecYWVJ7
B9dcx9/Qn6ne3mZPCtbO6XZadiKq3ulFEh5K2/dSoGa0T6yDZMVnB5tOY7988mnq
XciN8hQdJXVKiYQhZO5SZT1hAHPuB21VlhQIDwtS3huolmeTHsQIUaO3QDyrMS+a
wBskgQfvwcd69YG7nmah/Ig6X5EUkrmnEmVAhvur/a0VoCSb3IwPeqBYD4yuoAoh
asv9rtw6+GPiPFi105EG
=bbYd
-----END PGP SIGNATURE-----