Re: GPG Signing based on recipient
- To: mutt-users@xxxxxxxx
- Subject: Re: GPG Signing based on recipient
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Mon, 13 Aug 2007 09:58:37 -0600
- Cc: Mark Sansome <msansome@xxxxxxxxxxxxxxxxxxx>
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=0.5; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=received:received:date:from:to:cc:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; q=dns/txt; s=default; bh=G4F1Ec/mXIpyiW2iozuGJ7O0N88=; b=Iu2CieM1XSWtRGIqKTFsaVGiDvue8LUTi3ybEoOjP3Pqo/3cbNWVzh5PGPqs9TW6gdH6ZfK4hQ8ma+JOofQwafbwHIUbbYrQNmJ6kBagnCia6D48a6Js+yq0dxSoxIEYLoN5bOu6vIpQpm49zQ96KccddYioEVpN2CHqauhrQRo=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=MiCYdkbx/2y7emauMUf3PqQDtoPRNOIH1fHeheQ2GMdtvcbBaGzEpi79+WAVvw2I1rMp1M8c+YAujSjpkn8lJcWT9z6hjCn4fijP14M1dF9Y0OKHsvhK+mMYXiYRGJNefjIjRZZfC/DmOo6IxjTShPr9Opbdq19g1IIVepILBRI=; h=Received:Received:Date:From:To:Cc:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent;
- In-reply-to: <20070813151917.GA27185@xxxxxxxxxxxxxx>
- 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, Mark Sansome <msansome@xxxxxxxxxxxxxxxxxxx>
- References: <20070813151917.GA27185@xxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.16 (2007-07-09)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday, August 13 at 04:19 PM, quoth Mark Sansome:
>I would like to sign each mail with a gpg key appropriate to that
>identity. I have tried the following send-hook, but perhaps my
>understanding of the syntax of hooks is incorrect. Anyway it doesn't
>work:
>
># Default gpg signature for majority of mail
>set pgp_sign_as=1234567891234567
># Identity and gpg signature to be used in all mails to
>"marktest@xxxxxxxxxxxx"
>send-hook '~C marktest@xxxxxxxxxxxx' 'my_hdr From: Test Account
><test.account@xxxxxxxxxxxx>' 'set pgp_sign_as=98765432198765432'
>
>Is it possible to do this?
>Is my syntax incorrect?
What you need to do is separate them into different send-hooks, like
so:
send-hook '~C marktest@xxxxxxxxxxxx' 'my_hdr From: Test Account
<test.account@xxxxxxxxxxxx>'
send-hook '~C marktest@xxxxxxxxxxxx' 'set pgp_sign_as=98765432198765432'
Unfortunately, you can't have a single send-hook execute multiple
commands.
~Kyle
- --
As far as the laws of mathematics refer to reality, they are not
certain, and as far as they are certain, they do not refer to reality.
-- Albert Einstein
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iD8DBQFGwH+tBkIOoMqOI14RAl0eAJ45nSrmmSecAJ5s/5DtG+zZv3puAACgpJ8U
quXvLjzNstwwbSdlIfxYIsY=
=WDjz
-----END PGP SIGNATURE-----