From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (cB33F4BC1.dhcp.bluecom.no [193.75.63.179]) by mx.google.com with ESMTPS id 13sm1234442ewy.13.2010.03.12.14.34.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 12 Mar 2010 14:34:02 -0800 (PST) From: Gaute Hope To: sup-talk Subject: Re: [sup-talk] [patch] Add crypto_selector variable to before-edit In-reply-to: <1268431172-sup-9482@nemesis.home> References: <1263824428-sup-6466@nemesis.home> <1264251144-sup-4056@masanjin.net> <1264521165-sup-9898@nemesis.home> <1268130450-sup-8181@dolk> <1268431172-sup-9482@nemesis.home> Date: Fri, 12 Mar 2010 23:34:16 +0100 Message-Id: <1268433226-sup-8467@dolk> User-Agent: Sup/git Content-Transfer-Encoding: 8bit Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="=-1268433258-109070-6043-1747-1-=" MIME-Version: 1.0 --=-1268433258-109070-6043-1747-1-= Content-Type: text/plain; charset=UTF-8 Excerpts from Daniel Schoepe's message of 2010-03-12 23:03:03 +0100: > Excerpts from Gaute Hope's message of Tue Mar 09 11:29:13 +0100 2010: > > Could someone be so kind and provide an example for setting it to i.e. > > 'Sign' by default, given a specific from address? > > > > - gaute > > Something like this should work: > > crypto_selector.set_to :sign if header["From"] == "foo@ba.r" > > (You might need to use e.g. a regex if the header also contains the name, > as in "Foo Bar ") Thanks, that did it! - gaute --=-1268433258-109070-6043-1747-1-= Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkuawWgACgkQCLbddHnmqqbGRgCgiiQ9p1Ws/EHQHiU7OIjlfAgl Yt4An0T+VqzDqptPJcgkDcIvKR9kv5vT =jtgj -----END PGP SIGNATURE----- --=-1268433258-109070-6043-1747-1-=--