From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.86.87.8 with SMTP id k8cs101300fgb; Fri, 12 Mar 2010 14:07:33 -0800 (PST) Received: by 10.229.127.164 with SMTP id g36mr1361984qcs.99.1268431652609; Fri, 12 Mar 2010 14:07:32 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 2si4197397qwi.21.2010.03.12.14.07.31; Fri, 12 Mar 2010 14:07:32 -0800 (PST) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org; dkim=neutral (body hash did not verify) header.i=@googlemail.com Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 8927A18582FA; Fri, 12 Mar 2010 17:07:31 -0500 (EST) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by rubyforge.org (Postfix) with ESMTP id 8196E18582F9 for ; Fri, 12 Mar 2010 17:03:12 -0500 (EST) Received: by fg-out-1718.google.com with SMTP id 19so530938fgg.5 for ; Fri, 12 Mar 2010 14:03:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:date:message-id:user-agent:content-transfer-encoding :content-type:mime-version; bh=oR2xY9Q6hoep02B88P4OAs3zZSKr1mTG8dfg0nJ63cw=; b=EKj1LGdipSkenUZDpek1LwT+LUacBlV2yg1fz/8mXcAaS/Eu6vLH0Uei95I2DNbSrZ XeiIOmc2I9nYXt2cRCnruv7qCXTVu2t33kv/qXdLiX/BGiJKYCaiogrWwlg+5mbh+P2u Q7+j3v5/1JwpBgQu59m1a/2dXI8F898BH/KD8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=subject:from:to:in-reply-to:references:date:message-id:user-agent :content-transfer-encoding:content-type:mime-version; b=JZovkxM+bn5UbiN/v+gIHDt2VKbpC5helBdzNgwjIXUUGCk3O2JMT0PRWvFzs/vMSc MENBm4Wu7r9fG/5yTuI2nc3XP1uEHlQZGaX1yCV8tHH0w1YY75FIt7mp708tG9cK509J gcOcIzu+4Bv20jlggddQpJRiyAtlpspFUKTJg= Received: by 10.87.68.3 with SMTP id v3mr4611746fgk.35.1268431391585; Fri, 12 Mar 2010 14:03:11 -0800 (PST) Received: from localhost (p54AB0508.dip0.t-ipconnect.de [84.171.5.8]) by mx.google.com with ESMTPS id l19sm791597fgb.18.2010.03.12.14.03.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 12 Mar 2010 14:03:09 -0800 (PST) From: Daniel Schoepe To: sup-talk In-reply-to: <1268130450-sup-8181@dolk> References: <1263824428-sup-6466@nemesis.home> <1264251144-sup-4056@masanjin.net> <1264521165-sup-9898@nemesis.home> <1268130450-sup-8181@dolk> Date: Fri, 12 Mar 2010 23:03:03 +0100 Message-Id: <1268431172-sup-9482@nemesis.home> User-Agent: Sup/git MIME-Version: 1.0 Subject: Re: [sup-talk] [patch] Add crypto_selector variable to before-edit X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0439502633==" Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org --===============0439502633== Content-Transfer-Encoding: 8bit Content-Type: multipart/signed; micalg="pgp-sha1"; boundary="=-1268431390-984868-24075-7278-1-="; protocol="application/pgp-signature" --=-1268431390-984868-24075-7278-1-= Content-Type: text/plain; charset=utf8 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 ") --=-1268431390-984868-24075-7278-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) iQIcBAEBAgAGBQJLmroXAAoJEIaTAtce+Z+JRJcP/jT4KCuy32wMyZrqhldX4XgY RekT11s/xz/C5erRgeOAnRus2h0LbPzilfFLTb3qChVtAT1bZ9O2Cpnluq5kGIRZ SWU2qIFxzpYhKUgtjsgZNS0iWekj9eQX5gU6Q5x59I9G6HSmffsTbdgtg1pakaMx H2yYM/vLEGf1xQE8q93ZaJY+Zp6aRMtwsiIi6qTpFbMyWS0dyS7KHqrP3Z/SS6G8 pJlDMJwspJfZa7Gyt7hRGQigcsKNxqaiwHPgRibDCBWh/fu3uf8SGTnde6fRJL86 iuaRqgwz8EvMfuYDziSTo7xu0pKduaB2cF7QqJ73nArr1aRcpHjv1kqPHxglvwwI xNBVk1FuhRIqCPXljDD1UrFM/i/iupfEb3El/C/z5l691ZPEKE3fpKUE0y1L1mik RgFH+gRbWFd9PkFHBhlLNPNB48yB/7Tt6YYn+0VS6HPxzeOQkholunpTF6dFtq1c L3dg9817q2s8/TwWq3nsUyk/QPZxL3wVgjEnt28nnCCow/S9Woy3jFt3iatDCSZU P87yQqRmmbiQiAwfXYOVuj70v0VzpwVgyVAmUZdgMmpISXEI0xrBFePadbLQ79tl x0w3dLsUXMc2xSbWcI5tPeOckmAXjUZej6JldCz0jBkTE3CKKBnMTs5DecY4BlcM YeKy5MOH2pfCVUSpqzpV =Sg2Z -----END PGP SIGNATURE----- --=-1268431390-984868-24075-7278-1-=-- --===============0439502633== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk --===============0439502633==--