Re: Conditionally removing signature
- To: mutt-users@xxxxxxxx
- Subject: Re: Conditionally removing signature
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Tue, 7 Jul 2009 12:43:59 -0500
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date :from:to:subject:message-id:references:mime-version:content-type :in-reply-to; s=default; bh=gQNSYKjt9bS6dqlXxKdxVS2yHTo=; b=m82p cKd9ulfbV0s2mxdHp6z1S1e4its6su0xZich63C0qCMUHD2f5II1cZco2cDo6yhc TG4gLVLfKEPzY0XHCou91esedKWLmaYp0hMWuSeaQd4Pkv0PAiONghXr5kcfFzRY EfK08IkxDvDwc1guSFPBFie6B+4QdpBpuiAIUwg=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=JoZ19+L8/hajcpKfWYdV9HD9t2hLnNzbBWjvLwts7rS/BP4vYOkI+eGExVlxGP+Ds4xNkdHin+6BObaqHL4HlbL3OCPB7ULONcrJI+oRg6QGJtiWaoEbp/j/ghpZfvDPlAHek9oB6LYh6rCXnnfkmDLxTRzbdfDQtu+U3DUV2lM=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <1246980680.95da4@xxxxxxxxxxxxxxxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
- References: <20090707065039.GB12607@xxxxxxxxxxxx> <20090707120623.GC356@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1246980680.95da4@xxxxxxxxxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.20 (2009-07-07)
-----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-----